# $Id $ # Makefile for Rom24/SkullMUD/SkullMUD. Works on Gentoo Linux. # Note: You must have at least version 3.1.x of g++ to compile; # The source is compiled using gcc version 3.3.4 20040623 # (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) CC = g++ RM = rm EXE = rom PROF = -O -ggdb #PROF = -O -g # Use these two lines to use crypt(), ie on Linux systems. # C_FLAGS = $(PROF) -Wall # L_FLAGS = $(PROF) -lcrypt # Uncomment these two lines to use plaintext passwords. # This is how you fix the 'crypt' linking errors! C_FLAGS = -Wall $(PROF) -I -Dunix -DNOCRYPT L_FLAGS = $(PROF) -DNOCRYPT # Source Files SRC_FILES := $(wildcard *.c) # Object Files OBJ_DIR = obj OBJ_FILES := $(patsubst %.c,$(OBJ_DIR)/%.o,$(SRC_FILES)) rom: $(OBJ_FILES) $(RM) -f $(EXE) $(CC) $(L_FLAGS) -o $(EXE) $(OBJ_FILES) $(OBJ_DIR)/%.o: %.c $(CC) $< $(C_FLAGS) -c -o $@ nodocs: @ echo didn\'t read the docs did you!!!??? clean: $(RM) -f $(OBJ_FILES) $(EXE) *~ *.bak *.orig *.rej distro: cd ../../ && tar --exclude="SkullMUD/src/rom" --exclude="SkullMUD/player/*" --exclude="SkullMUD/gods/*" --exclude="SkullMUD/log/*" --exclude="SkullMUD/src/obj/*" -vzcf SkullMUD-`date -I`.tar.gz SkullMUD distro2: cd ../../ && tar --exclude="SkullMUD/src/rom" --exclude="SkullMUD/log/*" --exclude="SkullMUD/src/obj/*" -vzcf SkullMUD-`date -I`.tar.gz SkullMUD