Makefile
TinyMAZE/src/Makefile · 2.3 KB
From the archive TinyMAZEv2.5a.tar.gz
Download the archive « Back to the archive contents
# Makefile for MAZE.
#
# Change this to the name of your favorite compiler.
# If you're using glibc2, add -DGLIBC2 after the compiler name.
# CC = gcc
CC = gcc -DGLIBC2
# Change these depending on what CFLAGS you want.
# These are for optimization.
# CFLAGS = -Wall -O3 -I$(TOPDIR)/src/hdrs
# These are for debugging.
CFLAGS = -Wall -g -I$(TOPDIR)/src/hdrs
# Put any extra libraries needed in here.
# LIBS = -lc -lm
LIBS = -lc -lm -lcrypt -lresolv
# The root directory of the MAZE in relation to the source directory.
TOPDIR = ..
# Put plugins below.
PLUGIN_OBJS \
=
# Object files.
UTIL_OBJS \
= util/wd
NETMAZE_OBJS \
= comm/admin.o \
comm/com.o \
comm/create.o \
comm/give.o \
comm/help.o \
comm/info.o \
comm/inventory.o \
comm/look.o \
comm/move.o \
comm/page.o \
comm/paste.o \
comm/pcmds.o \
comm/player.o \
comm/search.o \
comm/set.o \
comm/speech.o \
comm/who.o \
db/attrib.o \
db/db.o \
db/destroy.o \
db/mail.o \
db/reference.o \
ident/ident.o \
ident/id_close.o \
ident/id_open.o \
ident/id_parse.o \
ident/id_query.o \
ident/support.o \
io/bsd.o \
io/config.o \
io/email.o \
io/eventrefs.o \
io/input.o \
io/lockout.o \
io/log.o \
io/notify.o \
io/state.o \
prog/ansi.o \
prog/eval.o \
softcode/branch.o \
softcode/code.o \
softcode/commands.o \
softcode/funcs.o \
softcode/math.o \
softcode/run.o \
softcode/set.o \
softcode/var.o \
maze/class.o \
maze/game.o \
maze/glob.o \
maze/hash.o \
maze/locks.o \
maze/match.o \
maze/move.o \
maze/powers.o \
maze/plugins.o \
maze/predicates.o \
maze/queue.o \
maze/stack.o \
maze/timer.o \
maze/todomotd.o \
maze/unparse.o \
maze/utils.o \
util/fileutils.o \
util/stringutil.o
# DO NOT CHANGE BELOW unless you know what you're doing!
all: netmaze utils plugins
$(CC) $(CFLAGS) -o maze/netmaze $(NETMAZE_OBJS) $(PLUGIN_OBJS) $(LIBS)
netmaze: maze/netmaze
maze/netmaze: $(NETMAZE_OBJS)
utils: $(UTIL_OBJS)
plugins: $(PLUGIN_OBJS)
clean:
rm -f $(NETMAZE_OBJS) $(UTIL_OBJS) $(PLUGIN_OBJS) maze/netmaze
distclean: clean
rm -f maze/netmaze
rm -f util/wd
rm -f $(TOPDIR)/bin/netmaze
rm -f $(TOPDIR)/bin/wd
install: all
-mv -f $(TOPDIR)/bin/netmaze $(TOPDIR)/bin/netmaze~
cp -f maze/netmaze $(TOPDIR)/bin/netmaze
# strip $(TOPDIR)/bin/netmaze
-mv -f $(TOPDIR)/bin/wd $(TOPDIR)/bin/wd~
cp -f util/wd $(TOPDIR)/bin/wd
strip $(TOPDIR)/bin/wd