dpmodel/Makefile
havoc d0b355ef1c Initial revision
git-svn-id: svn://svn.icculus.org/twilight/trunk/dpmodel@2380 d7cf8633-e32d-0410-b094-e92efae38249
2002-09-16 19:59:21 +00:00

34 lines
686 B
Makefile

OBJECTS= dpmodel.o
#use this line for profiling
#PROFILEOPTION=-pg -g
#use this line for no profiling
PROFILEOPTION=
#note:
#the -Werror can be removed to compile even if there are warnings,
#this is used to ensure that all released versions are free of warnings.
#normal compile
OPTIMIZATIONS= -O6 -ffast-math -fexpensive-optimizations
CFLAGS= -MD -Wall -Werror $(OPTIMIZATIONS) $(PROFILEOPTION)
#debug compile
#OPTIMIZATIONS= -O -g
#CFLAGS= -MD -Wall -Werror -ggdb $(OPTIMIZATIONS) $(PROFILEOPTION)
LDFLAGS= -lm $(PROFILEOPTION)
all: dpmodel
.c.o:
gcc $(CFLAGS) -c $*.c
dpmodel: $(OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
clean:
-rm -f dpmodel *.o *.d
.PHONY: clean
-include *.d