# Makefile for DMTXLS: DooM TeXture LiSter

# Definitions
# for SunOS use:
# CC	= acc
# for Irix, HP-UX use:
# CC	= cc
# for Linux, Ultrix use:
CC	= gcc

CFLAGS	= -O
LDFLAGS	= -s

# for SunOS use:
# INCLUDES = /usr/users/sigc/a01/bin/SC1.0/ansi_include
# for Irix, Linux, Ultrix, HP-UX use:
# (none)

# big endian machines (Sun, SGI, HP-UX) need to swap bytes within int's/long's
# DEFINES = -DBIG_ENDIAN
# little endian machines (IBM PC, DECstation) need to do nothing
DEFINES =


# 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
list.o:    dmtxls.h dmunix.h levels.h wstructs.h


# Commands
dmtxls: dmtxls.o $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) $@.o -o $@

.c.o:
# for SunOS use:
#	$(CC) $(CFLAGS) $(DEFINES) -I$(INCLUDES) -c $<
# for Irix, Linux, Ultrix use:
	$(CC) $(CFLAGS) $(DEFINES) -c $<
# for HP-UX use:
#	$(CC) $(CFLAGS) $(DEFINES) -Aa -c $<


# Remove Objects
clean:
	rm -f *.o

