diff options
author | nlanza <nlanza@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-08-13 02:19:00 +0000 |
---|---|---|
committer | nlanza <nlanza@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-08-13 02:19:00 +0000 |
commit | aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f (patch) | |
tree | d0551b96eaebb5b55694579fb8dae4abc7a38407 /crawl-ref/source/makefile.sol | |
parent | 2b32f164e6ca1c4b3d587789f6cf46f46fe02fe8 (diff) | |
download | crawl-ref-aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f.tar.gz crawl-ref-aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f.zip |
Clean up a mistake in the SVN import.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makefile.sol')
-rw-r--r-- | crawl-ref/source/makefile.sol | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile.sol b/crawl-ref/source/makefile.sol new file mode 100644 index 0000000000..e79d7e3a53 --- /dev/null +++ b/crawl-ref/source/makefile.sol @@ -0,0 +1,68 @@ +# Make file for Dungeon Crawl (solaris) + +# +# Modified for Crawl Reference by $Author$ on $Date$ +# + +APPNAME = crawl + +# this file contains a list of the libraries. +# it will make a variable called OBJECTS that contains all the libraries +include makefile.obj + +OBJECTS += libunix.o + +CXX = g++ +DELETE = rm -f +COPY = cp +GROUP = games +MOVE = mv +OS_TYPE = SOLARIS + +CFLAGS = -Wall -Wwrite-strings -Wstrict-prototypes \ + -Wmissing-prototypes -Wmissing-declarations \ + -g -D$(OS_TYPE) $(EXTRA_FLAGS) + +LDFLAGS = -static +MCHMOD = 2755 +INSTALLDIR = /opt/local/newcrawl/bin +LIB = -lcurses + +all: $(APPNAME) + +install: $(APPNAME) + #strip $(APPNAME) + $(MOVE) ${INSTALLDIR}/${APPNAME} ${INSTALLDIR}/${APPNAME}.old + $(COPY) $(APPNAME) ${INSTALLDIR} + chgrp ${GROUP} ${INSTALLDIR}/${APPNAME} + chmod ${MCHMOD} ${INSTALLDIR}/$(APPNAME) + +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) + +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} + +.h.cc: + touch $@ |