#######################################################################
#            Digital Nightmares Terroid makefile for Linux            #
#             Game Copyright 1996 Michael and Ulrich Haar             #
#             Linux porting and makefile by Michael Thayer            #
#                                                                     #
# Requires the DN libraries to be built and in the "dnlibs" directory #
#######################################################################

CC = gcc
CFLAGS = -Wall -O3 -g3 -pg
IFLAGS = -I. -I..
LFLAGS = -L/usr/X11R6/lib -L.. -ldn -lmod -lm -lX11
LIBS = ../libdn.a
RM = rm

OBJ = oomake.o

.PHONY : all clean

all : oomake

oomake : $(OBJ) $(LIBS)
	$(CC) $(CFLAGS) $(OBJ) $(LFLAGS) -o oomake

%.o : %.c
	$(CC) $(IFLAGS) $(CFLAGS) -o $@ -c $<

clean :
	-$(RM) *.o *~
