#
#  GNU Makefile for eRTOS examples
#

.SUFFIXES: .exe

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

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

PROGS  = test.exe test3.exe test4.exe test5.exe test6.exe    \
         test7.exe test8.exe test9.exe test12.exe test13.exe \
         test14.exe test15.exe test17.exe mathtest.exe       \
         term.exe term2.exe term3.exe

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

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

$(PROGS): $(LIBS)

clean:
	rm -f $(PROGS)

