diff options
author | peterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573> | 2005-07-21 02:34:44 +0000 |
---|---|---|
committer | peterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573> | 2005-07-21 02:34:44 +0000 |
commit | 673bdae75485d14f759af597c3c62b99601f9a43 (patch) | |
tree | 368103f29fe0ce5dcf98060d9b5faa04590085fb /trunk/source/makefile.dos | |
parent | 7e900be770db24b0405fd2162491c405a425873e (diff) | |
download | crawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.tar.gz crawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.zip |
Initial revision
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'trunk/source/makefile.dos')
-rw-r--r-- | trunk/source/makefile.dos | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/trunk/source/makefile.dos b/trunk/source/makefile.dos new file mode 100644 index 0000000000..869d6f8745 --- /dev/null +++ b/trunk/source/makefile.dos @@ -0,0 +1,53 @@ +# Make file for Dungeon Crawl (dos) + +# this file contains a list of the libraries. +# it will make a variable called OBJECTS that contains all the libraries +include makefile.obj + +# need .exe so make will find the right file +APPNAME = crawl.exe +CXX = gxx +DELETE = del +COPY = copy +OS_TYPE = DOS +CFLAGS = -D$(OS_TYPE) $(EXTRA_FLAGS) +LDFLAGS = -Bc:/djgpp/contrib/pdcurs22/lib +INSTALLDIR = c:\games\crawl +# LIB = -lcurso -lpano + +all: $(APPNAME) + +install: $(APPNAME) + $(COPY) $(APPNAME) ${INSTALLDIR} + +clean: + $(DELETE) *.o + +distclean: + $(DELETE) *.o + $(DELETE) bones.* + $(DELETE) morgue.txt + $(DELETE) scores + $(DELETE) $(APPNAME) + $(DELETE) *.sav + $(DELETE) core + $(DELETE) *.0* + $(DELETE) *.lab + +$(APPNAME): $(OBJECTS) + ${CXX} ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(APPNAME) $(LIB) + strip $(APPNAME) + +debug: $(OBJECTS) + ${CXX} ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(APPNAME) $(LIB) + +profile: $(OBJECTS) + ${CXX} -g -p ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(APPNAME) $(LIB) + +.cc.o: + ${CXX} ${CFLAGS} -c $< ${INCLUDE} + +# I don't have touch for DOS, but if you do, you can put this back. +# +#.h.cc: +# touch $@ |