Makefile 413 B

12345678910111213141516171819
  1. GCC= gcc
  2. CFLAGS = -W -Wall -std=c99 `pkg-config gsl --cflags` -pipe -O2 -Wall -W -D_REENTRANT
  3. INCLUDE = -I.
  4. LIBS = -lm -lglut -lGL -lGLU `pkg-config gsl --libs` -la2ri
  5. OBJECTS = opengl.o main.o
  6. TARGET = reconstruction_bpa
  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)