-florian66-

Ne criez pas

Feb 8th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.37 KB | None | 0 0
  1. #!/usr/bin/make -f
  2.  
  3. NAME = chip
  4.  
  5. SRC = $(notdir $(wildcard src/*.c))
  6. INC = $(notdir $(wildcard include/*.h))
  7. CC = gcc
  8. OBJDIR = ./obj
  9.  
  10. all: $(NAME)
  11.  
  12. $(OBJDIR)/%.o : %.c
  13.     $(CC) -c -o $@ $<
  14.  
  15. % : $(OBJDIR)/%.o
  16.     $(CC) -o $(NAME) $@
  17.  
  18. ## Phuneral phuture ?
  19. .PHONY: all
  20. # END OF FILE
  21.  
  22. #gcc -o source.o source.c
  23. #gcc -o util.o util.c
  24. #gcc -o my_bin source.o util.o
Advertisement
Add Comment
Please, Sign In to add comment