# # Makefile for the mycal program # # PLEASE DO NOT EDIT THIS UNLESS YOU KNOW WHAT YOU'RE DOING! UPATH = /tnt3/13/cs2430/pub/bin/ # define utility programs and options CC = $(UPATH)cc CFLAGS = -ansi -pedantic -g MAKE = $(UPATH)make CTAGS = $(UPATH)ctags INDENT = $(UPATH)indent -bl -c41 -i4 -l72 -pcs # default target - builds mycal executable mycal: mycal.c $(CC) $(CFLAGS) -o mycal mycal.c # "debug" target - builds mycal executable with debug code # this is some very wierd stuff ... debug: mycal.c @CFLAGS="$(CFLAGS) -DDEBUG";export CFLAGS;$(MAKE) -e # "pretty" target - beautify source files # this is only moderately wierd stuff ... pretty: mycal.c ls $? | xargs -p -n1 $(INDENT) @touch pretty # "clean" target - remove unwanted object files and executables # helps keep your code shiny and bug-free ... clean: rm -f mycal mycal.o pretty tags lint nohup.out a.out core