# Makefile (DJGPP) for DMTXLS: DooM TeXtures LiSter

# Programs & Objects
PROGRAMS= dmtxls
OBJS	= wads.o levels.o list.o

# Rules & Dependencies
all::	$(PROGRAMS)

dmtxls.o:  dmtxls.h dmunix.h
wads.o:    dmtxls.h dmunix.h
levels.o:  dmtxls.h dmunix.h wstructs.h
print.o:   dmtxls.h dmunix.h levels.h wstructs.h


# Commands
dmtxls: dmtxls.o $(OBJS)
	gcc -s $(OBJS) $@.o -o $@
	coff2exe dmtxls

.c.o:
	gcc -O -c $<

# Remove Objects
clean:
	rm -f *.o

