mirror of
https://github.com/DarkPlacesEngine/dpmodel.git
synced 2025-02-24 03:41:12 +00:00
37 lines
708 B
Text
37 lines
708 B
Text
|
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.exe
|
||
|
|
||
|
.c.o:
|
||
|
gcc $(CFLAGS) -c $*.c
|
||
|
|
||
|
dpmodel.exe: $(OBJECTS)
|
||
|
gcc -o $@ $^ $(LDFLAGS)
|
||
|
|
||
|
clean:
|
||
|
-del dpmodel.exe
|
||
|
-del *.o
|
||
|
-del *.d
|
||
|
|
||
|
.PHONY: clean
|
||
|
|
||
|
-include *.d
|