Makefile 496 B

12345678910111213141516171819202122232425
  1. GCC= gcc
  2. CFLAGS = -W -Wall -std=c99 -pipe -O2 -Wall -W -D_REENTRANT
  3. INCLUDE =
  4. LIBS = -lgsl -lgslcblas -lm -lglut -lGL -lGLU -la2ri
  5. OBJECTS = main.o
  6. TARGET = precision_squelette
  7. all : $(TARGET)
  8. $(TARGET) : $(OBJECTS)
  9. $(GCC) $(CFLAGS) $(INCLUDE) $(OBJECTS) -o $(TARGET) $(LIBS)
  10. %.o : %.c
  11. $(GCC) $(CFLAGS) $(INCLUDE) -c $< -o $@
  12. clean :
  13. rm -f *~ *.o $(TARGET)
  14. cleanall : clean
  15. rm -rf ../../bin/$(TARGET)
  16. install : $(TARGET)
  17. mkdir ../../bin/$(TARGET)
  18. cp $(TARGET) ../../bin/$(TARGET)