mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:22:45 +00:00 
			
		
		
		
	 4698a10dd1
			
		
	
	
		4698a10dd1
		
	
	
	
	
		
			
			At a later date we'll probably want a template for SHLIB_OBJS and SHLIB or some such, but for now at least the library demo isn't printing compile commands all over the user's terminal.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			349 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			349 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| include ../../../Makefile.common
 | |
| 
 | |
| DYNLIBRARY = libDynamicLib.so
 | |
| 
 | |
| EXTRA_CLEAN = *.o *.so
 | |
| 
 | |
| all: $(DYNLIBRARY)
 | |
| 
 | |
| DynamicLib.o: DynamicLib.cpp
 | |
| 	@echo "$(notdir $(CURDIR)): C++ $@"
 | |
| 	$(QUIET) $(CXX) -DDEBUG -fPIC -isystem../../../ -o $@ -c $<
 | |
| 
 | |
| $(DYNLIBRARY): DynamicLib.o
 | |
| 	@echo "$(notdir $(CURDIR)): DYLIB $@"
 | |
| 	$(QUIET) $(CXX) -shared -o $(DYNLIBRARY) $<
 |