# Makefile for OrangeWorld program
#
# 16 April 1997,  jet

# The name of your pre-processor:
CPP= cpp

# The name of your Quake compiler:
QCC= qcc

# You may need to adjust these cpp options:

PFLAGS= -P -nostdinc -nostdinc++

# You may need to adjust these qcc options:
CFLAGS= 


# file deletion command
RM= rm -f

# (.zip) file creation command
ZIP= zip -9


# End of configurable options.
#####################################################################

SOURCES= ${shell echo src/*.qc}

INCLUDES= ${shell echo src/*.qh}

# documentation, test, and support files
DOCS= readme docs/authors.txt docs/customizing.txt docs/ouch.txt \
	 docs/ranking.txt

MKFILES= Makefile src/progs.src preprocess

SHOTGUNFILES= progs/shellcase.mdl sound/weapons/s_hit.wav

GATLINGFILES= progs/bullet.mdl progs/gib4.mdl progs/g_shell.mdl \
              progs/v_chain.mdl sound/weapons/gatling.wav \
	      sound/weapons/shellhit.wav
	      
FREEZEFILES= progs/f_shot.mdl progs/v_freeze.mdl sound/weapons/f_fired.wav \
             sound/weapons/f_hit.wav

OTHERFILES= progs.dat server.cfg $(SHOTGUNFILES) $(GATLINGFILES) $(FREEZEFILES)

TESTFILES= 

DISTFILES= $(DOCS) $(MKFILES) $(SOURCES) $(INCLUDES) $(OTHERFILES) $(TESTFILES)

#####################################################################

all: progs.dat

progs.dat: 
	preprocess
	@cd src/tmp; $(QCC) $(CFLAGS)

orange.zip:
	$(ZIP) orange.zip $(DISTFILES)


clean:
	$(RM) progs.dat
	$(RM) core
	$(RM) orange.zip

# end of file
