You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
411 B
Makefile

INCLUDE = -I/usr/include/
LIBDIR = -L/usr/X11R6/lib
COMPILERFLAGS = -Wall
CC = gcc
CFLAGS = $(COMPILERFLAGS) $(INCLUDE)
LIBRARIES = -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
all : $(OBJECTS)
$(CC) $(CFLAGS) -o animation $(OBJECTS) $(LIBDIR) $(LIBRARIES)
# to clean up:
clean:
rm -f ./animation;
rm -f *.o
# to compile all .c
%.o: %.c
$(CC) -c -o $@ $<