Borland Makefile cleanup
[fw/sdcc] / src / izt / Makefile.bcc
index 615c811dfb94e663060fa38e0bd29f4205714f95..c1f2438305f4281e79fdf995b14cc93a4d3b4e33 100644 (file)
@@ -1,23 +1,23 @@
-PRJDIR = ../..
+# Makefile for Borlad C++
 
-# !include $(PRJDIR)/Makefile.common
+PRJDIR = ../..
 
 OBJ = i186.obj ralloc.obj gen.obj tlcs900h.obj gen_generic.obj aop.obj util.obj
 LIB = port.lib
 
-!include ..\..\Bcc.inc
-CFLAGS  = -I.. -I. -I..\.. -I..\..\support
+!include $(PRJDIR)/Bcc.inc
+CFLAGS = $(CFLAGS) -I.. -I$(PRJDIR)
 
 all: $(LIB)
 
 i186.obj: i186.c i186_mappings.i
 
 $(LIB): $(OBJ)
-       if exist $(LIB) del $(LIB)
-        tlib /a $(LIB) +i186.obj +ralloc.obj +gen.obj +tlcs900h.obj
-        tlib /a $(LIB) +gen_generic.obj +aop.obj +util.obj
-       
+        if exist $(LIB) del $(LIB)
+        tlib $@ @&&!
++$(**: = &^
++)
+!
+
 .def.rul:
         gawk -f ../SDCCpeeph.awk $< > $@
-
-# include clean.mk