summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile.bsd
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makefile.bsd')
-rw-r--r--crawl-ref/source/makefile.bsd64
1 files changed, 64 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile.bsd b/crawl-ref/source/makefile.bsd
new file mode 100644
index 0000000000..9e10d1ebf8
--- /dev/null
+++ b/crawl-ref/source/makefile.bsd
@@ -0,0 +1,64 @@
+# -*- Makefile -*- for Dungeon Crawl (BSD)
+
+#
+# Modified for Crawl Reference by $Author$ on $Date$
+#
+
+GAME = 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
+OS_TYPE = BSD
+CFLAGS = -Wall -D$(OS_TYPE) $(EXTRA_FLAGS)
+LDFLAGS = -static -L/usr/lib
+MCHMOD = 711
+# INSTALLDIR = /usr/games
+INSTALLDIR = /tmp/CRAWLTEST/testdev
+LIB = -lncurses
+
+INCLUDES = -I/usr/include/ncurses
+
+all: $(GAME)
+
+install: $(GAME)
+ $(COPY) $(GAME) ${INSTALLDIR}
+ chmod ${MCHMOD} ${INSTALLDIR}/$(GAME)
+
+clean:
+ $(DELETE) *.o
+
+distclean:
+ $(DELETE) *.o
+ $(DELETE) bones.*
+ $(DELETE) morgue.txt
+ $(DELETE) scores
+ $(DELETE) $(GAME)
+ $(DELETE) *.sav
+ $(DELETE) core
+ $(DELETE) *.0*
+ $(DELETE) *.lab
+
+
+$(GAME): $(OBJECTS)
+ ${CXX} ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(GAME) $(LIB)
+ strip $(GAME)
+ chmod ${MCHMOD} $(GAME)
+
+debug: $(OBJECTS)
+ ${CXX} ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(GAME) $(LIB)
+
+profile: $(OBJECTS)
+ ${CXX} -g -p ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(GAME) $(LIB)
+
+.cc.o:
+ ${CXX} ${CFLAGS} -c $< ${INCLUDE}
+
+.h.cc:
+ touch $@