# # The compiler and the flags it will use. # CC = cc CFLAGS = -I/home/cs551/include -I/usr/include -g LDFLAGS = LIBS = -L/home/cs551/lib/$(CS551OSTYPE) -lforms -lGL -lGLU -lX11 -lXext -lm # # Files to submit: Your Makefile, your .fd fdesign file, ALL .c and .h files # SUBMIT = Makefile gfx.c gfx.h # # Assignment Number # ASSIGN = 4 # # Source files. Place all your .c files (including those generated # automatically by the fdesign program) here, but not your .h files. # SRCS = gfx.c OBJS = $(SRCS:.c=.o) # # TARGET is the name of the program to be created # TARGET = hello # # This rule tells how to change a generic .c file into a .o file; # the $< token is expanded into whatever .c file is working on. # .c.o: $(CC) $(CFLAGS) -c $< all: $(TARGET) $(TARGET): $(OBJS) $(CC) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) clean: -rm -f $(OBJS) core a.out *~ *.bak $(TARGET) submit: clean -mkdir cs551.$(USER).$(ASSIGN) cp $(SUBMIT) cs551.$(USER).$(ASSIGN) gtar -czf - cs551.$(USER).$(ASSIGN) | uuencode $(USER).$(ASSIGN).tgz | Mail -s "cs551 Assignment Number $(ASSIGN) Submission" cs551-submit@cs.virginia.edu /bin/rm -rf cs551.$(USER).$(ASSIGN)