# 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 and pretty much everything else use this...
CC=cc

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

# if you need any flags put them here
FLAGS=

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

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

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

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

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