#
#  GNU Makefile for ./projectsdirectory
#

.SUFFIXES: .exe

LIBS = ../lib/librt32.a $(subst \,/,$(WATT_ROOT))/lib/libwatt.a

CC     = gcc
CFLAGS = -Wall -O2 -g -gcoff -I. -I../inc

PROGS  = web4test.exe email.exe fingtest.exe telnetd.exe modem.exe \
         cgitest.exe cookie.exe xmodem.exe findgate.exe netwatch.exe

all: $(PROGS)
	@echo Protected-mode (djgpp2) program done.

%.exe: %.c $(LIBS)
	$(CC) $(CFLAGS) $*.c $(LIBS) -o $*.exe

$(PROGS): $(LIBS)

clean:
	rm -f $(PROGS)

