# Makefile for EMX on OS/2 with a.out style linkage (EMX Runtime)
# see also makefile.emo
# No support for the Husky build environment
CC= gcc
CFLAGS= -Wall -Zcrtdll
CDEFS= -DOS2 -DNOSEMAPHORES
COPT= -O3 -fomit-frame-pointer -fstrength-reduce -funsigned-char -s
LIB= ar
.SUFFIXES:
.SUFFIXES: .c .o
TARGET= smapiemx.a
OBJS= 1stchar.o \
api_sdm.o \
sq_area.o \
sq_hash.o \
sq_help.o \
sq_idx.o \
sq_kill.o \
sq_lock.o \
sq_misc.o \
sq_msg.o \
sq_read.o \
sq_uid.o \
sq_write.o \
api_jam.o \
cvtdate.o \
date2bin.o \
dosdate.o \
fexist.o \
ffind.o \
flush.o \
locking.o \
months.o \
msgapi.o \
parsenn.o \
patmat.o \
qksort.o \
strftim.o \
strocpy.o \
structrw.o \
trail.o \
weekday.o \
semaphor.o \
setfsize.o \
tdelay.o
# Thunderbirds are go!
.c.o:
$(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
$(TARGET): $(OBJS)
$(LIB) r $@ $?
clean:
-cmd /c DEL *.o
distclean:
-cmd /c DEL $(TARGET)
syntax highlighted by Code2HTML, v. 0.9.1