GCC= gcc CFLAGS = -W -Wall -std=c99 -pipe -O2 -Wall -W -D_REENTRANT INCLUDE = -I. LIBS = -lgsl -lgslcblas -lm -lglut -lGL -lGLU -la2ri OBJECTS = opengl.o main.o TARGET = visu_aspect_ratio all : $(TARGET) $(TARGET) : $(OBJECTS) $(GCC) $(CFLAGS) $(INCLUDE) $(OBJECTS) -o $(TARGET) $(LIBS) %.o : %.c $(GCC) $(CFLAGS) $(INCLUDE) -c $< -o $@ clean : rm -f *~ *.o $(TARGET) cleanall : clean rm -rf ../../bin/$(TARGET) install : $(TARGET) mkdir ../../bin/$(TARGET) cp $(TARGET) ../../bin/$(TARGET)