Résultat du TP en C sur Forth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 994B

123456789101112131415161718192021222324252627282930313233343536
  1. CC = gcc
  2. CFLAGS = -Wall -pedantic -Werror=format-security -Werror=implicit-function-declaration -D_FORTIFY_SOURCE=2 \
  3. -O2 -pipe -Wl,-z,defs -Wl,-z,now, -Wl,-z,relro
  4. TARGET = main
  5. OBJS = $(TARGET).o logic.o pile.o lexer.o exec.o command.o num.o pileInt.o state.o stackops.o calcop.o \
  6. cmpop.o functions.o show.o
  7. LDFLAGS = -Wall
  8. default: $(TARGET)
  9. all: $(TARGET)
  10. clean:
  11. rm *.o $(TARGET)
  12. test: $(TARGET)
  13. ./test.sh
  14. $(TARGET): $(OBJS)
  15. $(CC) $(OBJS) -o $@ $(LDFLAGS)
  16. logic.o: logic.h state.h pileInt.h
  17. pile.o: pile.h num.h
  18. lexer.o: lexer.h
  19. exec.o: exec.h state.h command.h pile.h functions.h
  20. command.o: command.h state.h functions.h calcop.h cmpop.h stackops.h show.h logic.h
  21. state.o: state.h definitions.h pile.h lexer.h
  22. num.o: num.h
  23. show.o: show.h state.h
  24. pileInt.o: pileInt.h definitions.h
  25. calcop.o: calcop.h pile.h state.h num.h
  26. stackops.o: stackops.h state.h
  27. cmpop.o: cmpop.h state.h num.h pile.h
  28. functions.o: functions.h definitions.h state.h pileInt.h
  29. .PHONY: default all clean test