mirror of
https://github.com/DarkPlacesEngine/dpmodel.git
synced 2024-11-13 00:24:22 +00:00
Initial revision
git-svn-id: svn://svn.icculus.org/twilight/trunk/dpmodel@2380 d7cf8633-e32d-0410-b094-e92efae38249
This commit is contained in:
commit
d0b355ef1c
4 changed files with 2028 additions and 0 deletions
8
.cvsignore
Normal file
8
.cvsignore
Normal file
|
@ -0,0 +1,8 @@
|
|||
*.d
|
||||
*.o
|
||||
dpmodel
|
||||
gmon.out
|
||||
*.ncb
|
||||
*.opt
|
||||
*.plg
|
||||
*.exe
|
34
Makefile
Normal file
34
Makefile
Normal file
|
@ -0,0 +1,34 @@
|
|||
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
|
36
Makefile.mingw
Normal file
36
Makefile.mingw
Normal file
|
@ -0,0 +1,36 @@
|
|||
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
|
Loading…
Reference in a new issue