#
# makefile for WBLoc
#
# Bruno Costa - 16 Jan 91 - 16 Jan 91
#

EXE = WBLoc
LC = LC:lc
AS = asm
LINK = LC:blink
CFLAGS = -cusf
OBJS = wbloc.o

.c.o:
	@echo "*e[32;3mCompiling file $*.c*e[31;0m"
	$(LC) $(CFLAGS) $*

# link with debug information

#$(EXE): $(OBJS)
#	$(LINK) from LIB:c.o $(OBJS) LIBRARY Lib:lc.lib \
# SMALLCODE SMALLDATA TO $(EXE) BATCH ADDSYM
#	@echo "*e[32;1m-- Program is ready --*e[31;0m"


# link the smallest executable possible
# DEFINE __main=__tinymain DEFINE _exit=__exit \

$(EXE): $(OBJS)
	$(LINK) from LIB:c.o $(OBJS) LIBRARY Lib:lc.lib \
 DEFINE __main=__tinymain DEFINE _exit=__exit \
 SMALLCODE SMALLDATA TO $(EXE) BATCH NODEBUG
	@echo "*e[32;1m-- Program is ready --*e[31;0m"
