# Makefile for building SMAPI with Quick C or MS C for DOS
# No support for the Husky build environment
# Use this for Quick C:
CC= qcl
# Use this for MS C
CC=cl
CFLAGS= -nologo -W4 -AL
CDEFS= -DMSDOS -DNOSEMAPHORES
COPT= -Ox
LIB= lib
# you may also use tasm
ASM= masm
TARGET= smapiqcd.lib
OBJS= 1stchar.obj \
api_sdm.obj \
sq_area.obj \
sq_hash.obj \
sq_help.obj \
sq_idx.obj \
sq_kill.obj \
sq_lock.obj \
sq_misc.obj \
sq_msg.obj \
sq_read.obj \
sq_uid.obj \
sq_write.obj \
api_jam.obj \
cvtdate.obj \
date2bin.obj \
dosdate.obj \
fexist.obj \
ffind.obj \
flush.obj \
flushasm.obj \
locking.obj \
months.obj \
msgapi.obj \
parsenn.obj \
patmat.obj \
qksort.obj \
sqasm.obj \
strftim.obj \
strocpy.obj \
structrw.obj \
trail.obj \
weekday.obj \
semaphor.obj \
setfsize.obj \
tdelay.obj
# Thunderbirds are go!
.c.obj:
$(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
$(LIB) /nologo $(TARGET) -+$@,,
.asm.obj:
$(ASM) -ml $<
$(LIB) /nologo $(TARGET) -+$@,,
$(TARGET): $(OBJS)
clean:
-DEL *.obj
-DEL $(TARGET)
syntax highlighted by Code2HTML, v. 0.9.1