projects
/
pyfrprog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make: ignore warnings until we fix it (new buildtools released by fujitsu)
[pyfrprog.git]
/
pkernel
/
Makefile
diff --git
a/pkernel/Makefile
b/pkernel/Makefile
index fb5fa164b4c96bfc4e0a62101c44e297ea62ea50..66e4598ce5e3f02123a9a0cc6b92c57872cbbdbc 100644
(file)
--- a/
pkernel/Makefile
+++ b/
pkernel/Makefile
@@
-1,46
+1,42
@@
-# TODO: make upload, remove warnings
-
-# hinweise:
-# wenn folgende meldung kommt
+# note:
+# when this message appears on build
#> "*** F9012D : tool execute is failed (fasm911s)"
#> "*** F9012D : tool execute is failed (fasm911s)"
-# per 'wine regedit' den string "Path" in
+# you have to set the "Path" environment var in wine.
+# start 'wine regedit' and create a string "Path" in
#> HKEY_CURRENT_USER/Environment
#> HKEY_CURRENT_USER/Environment
-#
setzen, naemlich auf die ausgabe von
+#
and set it to the output of
#> winepath $FUJDEV/Bin
#> winepath $FUJDEV/Bin
-#
natuerlich muss $FUJDEV richtig gesetzt sein!
+#
consider you have to set $FUJDEV properly
ifeq ($(strip $(FUJDEV)),)
ifeq ($(strip $(FUJDEV)),)
-$(error "Set FUJDEV in your environment. Ususally this is the Rootpath of the Softune installer. You MUST NOT install it through wine.")
+$(error "Set FUJDEV in your environment. Ususally this is the Rootpath of the Softune installer
package
. You MUST NOT install it through wine.")
endif
PREFIX = wine $(FUJDEV)/Bin/
endif
PREFIX = wine $(FUJDEV)/Bin/
-CPUT = -cpu MB91F465
K#TODO: change to
X
+CPUT = -cpu MB91F465X
CFLAGS = -w 1 -O 4 -B -K SPEED -K LONGADDRESS
CFLAGS += -K SCHEDULE -K A1 -K SARG -Xdof
CFLAGS += -K EOPT -K LIB -K UNROLL -Xalign
CFLAGS = -w 1 -O 4 -B -K SPEED -K LONGADDRESS
CFLAGS += -K SCHEDULE -K A1 -K SARG -Xdof
CFLAGS += -K EOPT -K LIB -K UNROLL -Xalign
-CFLAGS += -c -cwno $(CPUT)
+CFLAGS += -c -
X
cwno $(CPUT)
ASFLAGS = -w 2 -O 0 -linf ON -lsrc ON -lsec ON
ASFLAGS += -lcros OFF -linc ON -lexp OBJ -pl 60
ASFLAGS += -pw 100 -tab 8 -Xdof -cwno $(CPUT)
LDFLAGS = -AL 2
ASFLAGS = -w 2 -O 0 -linf ON -lsrc ON -lsec ON
ASFLAGS += -lcros OFF -linc ON -lexp OBJ -pl 60
ASFLAGS += -pw 100 -tab 8 -Xdof -cwno $(CPUT)
LDFLAGS = -AL 2
-LDFLAGS += -ra D_RAM=0x0002
E000/0x0002FFFF #TODO try 2C000
+LDFLAGS += -ra D_RAM=0x0002
C000/0x0002FFFF
LDFLAGS += -ra ID_RAM=0x00030000/0x00031FFF
LDFLAGS += -ro ROM_AREA=0x00080000/0x000FFFFF
LDFLAGS += -ra ID_RAM=0x00030000/0x00031FFF
LDFLAGS += -ro ROM_AREA=0x00080000/0x000FFFFF
-LDFLAGS += -ro ROM_AREA_2=0x00148000/0x0014FFFF
-LDFLAGS += -sc DATA/Data+INIT/Data+SSTACK/Data+USTACK/Data=D_RAM
-LDFLAGS += -sc IRAM/Code=ID_RAM
-LDFLAGS += -sc CODE+@INIT+@IRAM+CONST=ROM_AREA
-LDFLAGS += -sc CODE_START/Code=0x000F4000
+LDFLAGS += -sc DATA/Data+SSTACK/Data=D_RAM
+LDFLAGS += -sc CODE_START/Code+CODE=ID_RAM
LDFLAGS += -check_locate -pl 60 -pw 132 -Xals
LDFLAGS += -check_locate -pl 60 -pw 132 -Xals
-LDFLAGS += -Xalr -na -w 1 -Xdof -Xset_rora -cwno -a $(CPUT)
+LDFLAGS += -Xalr -na -w 1 -Xdof -Xset_rora -
X
cwno -a $(CPUT)
LIBRFLAGS = -dt s,d,r,a -pl 60 -pw 132 -cwno $(CPUT)
LIBRFLAGS = -dt s,d,r,a -pl 60 -pw 132 -cwno $(CPUT)
-CONVFLAGS = -cwno -Xdof
+CONVFLAGS = -
X
cwno -Xdof
DEFINES =
DEFINES =
@@
-59,6
+55,12
@@
LD = $(PREFIX)flnk911s
LIBR = $(PREFIX)flibs
CONV = $(PREFIX)f2ms
LIBR = $(PREFIX)flibs
CONV = $(PREFIX)f2ms
+ifneq ($(shell which dos2unix),)
+D2U = dos2unix
+else
+D2U = fromdos
+endif
+
all: $(TARGET_MHX)
upload: $(TARGET_MHX)
all: $(TARGET_MHX)
upload: $(TARGET_MHX)
@@
-76,7
+78,7
@@
$(TARGET): $(OBJS)
@echo " COMPILE $<"
@mkdir -p $(DEPDIR)
@echo -n "$@: " > $(DEPDIR)/$<.d
@echo " COMPILE $<"
@mkdir -p $(DEPDIR)
@echo -n "$@: " > $(DEPDIR)/$<.d
- @$(CC) -H $(CPUT) $< |
dos2unix
| paste -s -d " " >> $(DEPDIR)/$<.d
+ @$(CC) -H $(CPUT) $< |
$(D2U)
| paste -s -d " " >> $(DEPDIR)/$<.d
@$(CC) $(CFLAGS) $(DEFINES) $< -o $@
%.obj: %.asm
@$(CC) $(CFLAGS) $(DEFINES) $< -o $@
%.obj: %.asm