Get compiling with Borland C++ for Windows
[fw/sdcc] / src / mcs51 / Makefile.bcc
1 PRJDIR = ../..
2
3 # !include $(PRJDIR)/Makefile.common
4
5 OBJ = gen.obj ralloc.obj main.obj
6 LIB = port.lib
7
8 CFLAGS  = -6 -O -g0 -I.. -I. -I..\.. -I..\..\support
9
10 .c.obj:
11         BCC32 -c $(CFLAGS) $(CPPFLAGS) $<
12
13 all: $(LIB)
14
15 main.obj: main.c peeph.rul
16
17 $(LIB): peeph.rul $(OBJ)
18         del $(LIB)
19         tlib /a $(LIB) +gen.obj +ralloc.obj +main.obj
20         
21 peeph.rul: peeph.def
22         gawk -f ../SDCCpeeph.awk peeph.def > peeph.rul
23
24 # include clean.mk