projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
[fw/sdcc]
/
src
/
ds390
/
Makefile.bcc
diff --git
a/src/ds390/Makefile.bcc
b/src/ds390/Makefile.bcc
index b43fbe8e35ac50fc83340835b2a27094db28af18..8370b9f085b3e9b7c7e64cdf6a4ae916504b3606 100644
(file)
--- a/
src/ds390/Makefile.bcc
+++ b/
src/ds390/Makefile.bcc
@@
-1,22
+1,23
@@
-PRJDIR = ../..
+# Makefile for Borlad C++
-# !include $(PRJDIR)/Makefile.common
+PRJDIR = ../..
OBJ = gen.obj ralloc.obj main.obj
LIB = port.lib
OBJ = gen.obj ralloc.obj main.obj
LIB = port.lib
-!include
..\..\
Bcc.inc
-CFLAGS
= -I.. -I. -I..\.. -I..\..\support
+!include
$(PRJDIR)/
Bcc.inc
+CFLAGS
= $(CFLAGS) -I.. -I$(PRJDIR)
all: $(LIB)
main.obj: main.c peeph.rul
all: $(LIB)
main.obj: main.c peeph.rul
-$(LIB):
peeph.rul
$(OBJ)
- if exist $(LIB) 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 $< > $@