: Ajout d'une première makefile
This commit is contained in:
		
							parent
							
								
									a832c2f64c
								
							
						
					
					
						commit
						9f6e8875fd
					
				
							
								
								
									
										19
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								Makefile
									
									
									
									
									
								
							| @ -0,0 +1,19 @@ | ||||
| TARGET ?= dazibao | ||||
| SRC_DIRS ?= ./src/* | ||||
| CC := gcc | ||||
| CFLAGS= -O2 -Wall -lssl -lcrypto | ||||
| SRCS := $(shell find $(SRC_DIRS) -name *.c -or -name *.s) | ||||
| OBJS := $(addsuffix .o,$(basename $(SRCS))) | ||||
| DEPS := $(OBJS:.o=.d) | ||||
| 
 | ||||
| INC_DIRS := $(shell find $(SRC_DIRS) -type d) | ||||
| INC_FLAGS := $(addprefix -I,$(INC_DIRS)) | ||||
| 
 | ||||
| $(TARGET): $(OBJS) | ||||
| 	$(CC) $(CFLAGS) $(OBJS) -o $@ $(LOADLIBES) $(LDLIBS) | ||||
| 
 | ||||
| .PHONY: clean | ||||
| clean: | ||||
| 	$(RM) $(TARGET) $(OBJS) $(DEPS) | ||||
| 
 | ||||
| -include $(DEPS) | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 PERDRIAU nelson
						PERDRIAU nelson