# # Sample Makefile # # USAGE: # 1. Replace the a.c b.c with your source files (.c, cpp only) # 2. replace myproj with the name of the executable. # 3. In the first time and every time you add a #include statement # in your program, type "make depend" # 4. To build the program, type make. # LIBS = -lglut -lGL -lGLU -lm CC = gcc CFLAGS = -O -Wall SOURCES = main.c allocate_free.c manipulate.c shookie.c adaptingeigen.c Laplacian.c OBJECTS := $(patsubst %.c,%.o,$(SOURCES)) .c.o: $(CC) -c $(CFLAGS) $< all: compress compress: $(OBJECTS) $(CC) -o $@ $^ $(LIBS) clean: $(RM) *.o *~ depend: $(CC) -M $(SOURCES) > .depend -include .depend