# Makefile for 6.837 F97 PS3A
# to use, set UID and OBJECT below
# then run make 

# options to cc (allow // comments)
CFLAGS=-g -I/os/usr/include
# options to ld
LDOPTS=-o
# system libraries
LIBS=-lm

# set this to your Athena user id
UID=uid
# set this to the kind of object you are generating
OBJECT=object

# object files
OBJS=arg_parse.o $(UID)_$(OBJECT).o

# debug version:  compiled with -g, unstripped
default: $(OBJS)
	cc -I/os/usr/include $(LDOPTS) $(UID)_$(OBJECT) $(OBJS) $(LIBS)

# turnin version:  strip symbol table to save space
turnin: $(OBJS)
	cc -I/os/usr/include $(LDOPTS) $(UID)_$(OBJECT) $(OBJS) $(LIBS)
	strip $(UID)_$(OBJECT)

# very sneaky code, omit -fullwarn
arg_parse.o:
	cc -I/os/usr/include -c arg_parse.c

clean:
	rm -f core *.o

clobber:
	rm -f $(UID)_$(OBJECT)
	make clean






