X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Favr%2FMakefile.bcc;h=8370b9f085b3e9b7c7e64cdf6a4ae916504b3606;hb=5a1d5e778e85664f4e6657019348b4756b16eacb;hp=bc0ae8975877c2e6b30b5547944e5d76891a849c;hpb=390c2efea588d5379a4eec3f5c904547d45142dc;p=fw%2Fsdcc diff --git a/src/avr/Makefile.bcc b/src/avr/Makefile.bcc index bc0ae897..8370b9f0 100644 --- a/src/avr/Makefile.bcc +++ b/src/avr/Makefile.bcc @@ -1,24 +1,23 @@ -PRJDIR = ../.. +# Makefile for Borlad C++ -# !include $(PRJDIR)/Makefile.common +PRJDIR = ../.. OBJ = gen.obj ralloc.obj main.obj LIB = port.lib -CFLAGS = -6 -O -g0 -I.. -I. -I..\.. -I..\..\support - -.c.obj: - BCC32 -c $(CFLAGS) $(CPPFLAGS) $< +!include $(PRJDIR)/Bcc.inc +CFLAGS = $(CFLAGS) -I.. -I$(PRJDIR) all: $(LIB) main.obj: main.c peeph.rul -$(LIB): peeph.rul $(OBJ) - del $(LIB) - tlib /a $(LIB) +gen.obj +ralloc.obj +main.obj - -peeph.rul: peeph.def - gawk -f ../SDCCpeeph.awk peeph.def > peeph.rul +$(LIB): $(OBJ) + if exist $(LIB) del $(LIB) + tlib $@ @&&! ++$(**: = &^ ++) +! -# include clean.mk +.def.rul: + gawk -f ../SDCCpeeph.awk $< > $@