#  Makefile for Hotel

OBJECTS = hotel.o human.o comp.o init.o utils.o costs.o help.o my_wgets.o display.o
PCOBJECTS = hotel.obj human.obj comp.obj init.obj utils.obj costs.obj display.obj help.obj my_wgets.obj
SOURCE = init.c utils.c hotel.c human.c costs.c comp.c help.c my_wgets.c
# the COHERENT switch is just for selecting int or long
# random numbers (random() or rand()) it's kinda dumb
# since the program casts 'em to ints anyhow.  i think
# i have a long random() floating around somewheres though.
# i'll post it if i find it.
# re-ported to coherent (! shoulda saved the backup !) 30-jan-90
# rick nickle (fcsys!trystro!rick@think.com)
CFLAGS = -DUNIX -DCOHERENT

#  Uncomment this if it's for Turbo C, apparently.
#.c.obj:
#	tcc -ms -c -a -N -v -DTURBO  $<

hotel: $(OBJECTS)
	cc -o hotel -O $(OBJECTS)  -lcurses -lterm

comp.o: defs.h
	cc -c $(CFLAGS) comp.c

display.o: defs.h
	cc -c $(CFLAGS) display.c

hotel.o: defs.h hotel.c
	cc -c $(CFLAGS) hotel.c

init.o: defs.h init.c
	cc -c $(CFLAGS) init.c

utils.o: defs.h utils.c
	cc -c $(CFLAGS) utils.c

human.o: defs.h my_wgets.h human.c
	cc -c $(CFLAGS) human.c

costs.o: defs.h costs.c
	cc -c $(CFLAGS) costs.c

help.o: defs.h help.c
	cc -c $(CFLAGS) help.c

pchotel: $(PCOBJECTS)
	tcc -ms $(PCOBJECTS) scurses.lib

shar: hotel.1 hotel.2
hotel.1: README comp.c costs.c defs.h help.c makefile
	shar README comp.c costs.c defs.h help.c makefile > hotel.1
hotel.2: hotel.c human.c init.c utils.c my_wgets.c my_wgets.h Notice
	shar hotel.c human.c init.c utils.c display.c my_wgets.c my_wgets.h Notice > hotel.2

