mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:52:44 +00:00 
			
		
		
		
	 69ca9cfd78
			
		
	
	
		69ca9cfd78
		
	
	
	
	
		
			
			This patch adds pthread_create() and pthread_exit(), which currently simply wrap our existing create_thread() and exit_thread() syscalls. LibThread is also ported to using LibPthread.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			306 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			306 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| include ../../Makefile.common
 | |
| 
 | |
| OBJS = pthread.o
 | |
| 
 | |
| LIBRARY = libpthread.a
 | |
| DEFINES += -DUSERLAND
 | |
| 
 | |
| all: $(LIBRARY)
 | |
| 
 | |
| $(LIBRARY): $(OBJS)
 | |
| 	@echo "LIB $@"; $(AR) rcs $@ $(OBJS)
 | |
| 
 | |
| .cpp.o:
 | |
| 	@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
 | |
| 
 | |
| -include $(OBJS:%.o=%.d)
 | |
| 
 | |
| clean:
 | |
| 	@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
 |