Makefile 806 B

123456789101112131415161718192021222324252627282930
  1. CC=/usr/bin/gcc
  2. <<<<<<< HEAD
  3. CFLAGS=-Wall -Werror -fno-builtin -O0 -g -pthread -m64 -std=iso9899:1999
  4. OBJ=bin/obj
  5. OBJS=$(OBJ)/example.o $(OBJ)/example2.o $(OBJ)/foo.o
  6. all: bin/example
  7. bin/example: $(OBJS)
  8. $(CC) $(CFLAGS) -o bin/example $(OBJS)
  9. bin/obj/foo.o: example.h example2.h
  10. $(CC) $(CFLAGS) -c -o $(OBJ)/foo.o foo.c
  11. bin/obj/example.o: example.c
  12. $(CC) $(CFLAGS) -c -o $(OBJ)/example.o example.c
  13. bin/obj/example2.o: example2.c
  14. $(CC) $(CFLAGS) -c -o $(OBJ)/example2.o example2.c
  15. =======
  16. CFLAGS=-Wall -Werror -fno-builtin -O0 -g -pthread -m64 -std=iso9899:1990
  17. OBJ=bin/obj
  18. OBJS=$(OBJ)/example.o
  19. all: $(OBJS)
  20. $(CC) $(CFLAGS) -o bin/example $(OBJS)
  21. bin/obj/example.o:
  22. $(CC) $(CFLAGS) -c -o bin/obj/example.o example.c
  23. >>>>>>> 78289eb... all: several makefile corrections and organization steps