# This is only a simple makefile. You could compile all the objects and
# rooms functions seperately here if you want but it would be messy.

# For AIX, OSF/1, Mach (Next) , Linux and lots more use this...
CC=cc 

# For HP-UX 10 (and probably 9 too) use this.
#CC=cc -Ae -DRAND

# For Dynix use this
#CC=cc -lsocket -lnsl -DRAND

# For Solaris use this..
#CC=/usr/ucb/cc 

ogmud: main.o objects.o rooms.o regions.o
	$(CC) main.o objects.o rooms.o regions.o -o ogmud

main.o: main.c skills.c main2.c defs.h globals.h
	$(CC) -c main.c

objects.o: objects.c defs.h externs.h
	$(CC) -c objects.c

rooms.o: rooms.c defs.h externs.h
	$(CC) -c rooms.c

regions.o: regions.c defs.h externs.h
	$(CC) -c regions.c
