# Makefile for GTAK library and emx
# works with GNU make, DMAKE and NMAKE

release:
	$(MAKE) -f makefile all CC="gcc -Zmts -O2"
debug:
	$(MAKE) -f makefile all CC="gcc -Zmts -g -DDEBUG"

CFLAGS = -I. -DOS2=2
OBJS = acl32.obj dirent2.obj dosname.obj inherit.obj os2ea_ld.obj

.SUFFIXES: .c .obj
.c.obj:
	$(CC) $(CFLAGS) -c $< -o $@

all: utils.a

utils.a: $(OBJS)
	-rm -f $@
	ar cr $@ $(OBJS)
	ar s $@
	emxomf -s -l $@
