mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 05:18:05 +11:00
Consistent cflags in emul's makefile.
This commit is contained in:
parent
ea41acec5c
commit
4467661591
@ -2,6 +2,7 @@ TARGETS = forth stage
|
|||||||
OBJS = emul.o libz80/libz80.o
|
OBJS = emul.o libz80/libz80.o
|
||||||
BLKPACK = ../tools/blkpack
|
BLKPACK = ../tools/blkpack
|
||||||
BLKUNPACK = ../tools/blkunpack
|
BLKUNPACK = ../tools/blkunpack
|
||||||
|
CFLAGS = -g -Wall
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
@ -13,20 +14,20 @@ $(BLKPACK):
|
|||||||
$(BLKUNPACK): $(BLKPACK)
|
$(BLKUNPACK): $(BLKPACK)
|
||||||
|
|
||||||
stage: stage.c $(OBJS) blkfs
|
stage: stage.c $(OBJS) blkfs
|
||||||
$(CC) stage.c $(OBJS) -o $@
|
$(CC) $(CFLAGS) stage.c $(OBJS) -o $@
|
||||||
|
|
||||||
blkfs: $(BLKPACK)
|
blkfs: $(BLKPACK)
|
||||||
$(BLKPACK) ../blk > $@
|
$(BLKPACK) ../blk > $@
|
||||||
|
|
||||||
forth: forth.c $(OBJS) blkfs
|
forth: forth.c $(OBJS) blkfs
|
||||||
$(CC) forth.c $(OBJS) -lncurses -o $@
|
$(CC) $(CFLAGS) forth.c $(OBJS) -lncurses -o $@
|
||||||
|
|
||||||
libz80/libz80.o: libz80/z80.c
|
libz80/libz80.o: libz80/z80.c
|
||||||
$(MAKE) -C libz80/codegen opcodes
|
$(MAKE) -C libz80/codegen opcodes
|
||||||
$(CC) -Wall -ansi -g -c -o libz80/libz80.o libz80/z80.c
|
$(CC) $(CFLAGS) -ansi -c -o libz80/libz80.o libz80/z80.c
|
||||||
|
|
||||||
emul.o: emul.c
|
emul.o: emul.c
|
||||||
$(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -DBLKFS_PATH=\"`pwd`/blkfs\" -c -o emul.o emul.c
|
$(CC) $(CFLAGS) -DFBIN_PATH=\"`pwd`/forth.bin\" -DBLKFS_PATH=\"`pwd`/blkfs\" -c -o emul.o emul.c
|
||||||
|
|
||||||
|
|
||||||
.PHONY: updatebootstrap
|
.PHONY: updatebootstrap
|
||||||
|
Loading…
Reference in New Issue
Block a user