summaryrefslogtreecommitdiffstats
path: root/stone_soup/crawl-ref/source/makefile.sol
diff options
context:
space:
mode:
Diffstat (limited to 'stone_soup/crawl-ref/source/makefile.sol')
-rw-r--r--stone_soup/crawl-ref/source/makefile.sol68
1 files changed, 68 insertions, 0 deletions
diff --git a/stone_soup/crawl-ref/source/makefile.sol b/stone_soup/crawl-ref/source/makefile.sol
new file mode 100644
index 0000000000..e79d7e3a53
--- /dev/null
+++ b/stone_soup/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 $@