forked from EtchedPixels/FUZIX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the libc and applications build, maybe correctly.
- Loading branch information
1 parent
e3f0c6d
commit fd79863
Showing
25 changed files
with
775 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
|
||
SRCS = ac.c almanac.c at.c calendar.c col.c cron.c deroff.c du.c ed.c expr.c | ||
SRCS += find.c m4.c make.c moo.c pr.c tar.c test.c ttt.c units.c | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
|
||
APPS = $(OBJS:.o=) | ||
|
||
all: $(APPS) size.report | ||
|
||
$(APPS): $(CRT0) | ||
|
||
$(APPS): %: %.o | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
expr.c: expr.y | ||
|
||
find.c: find.y | ||
|
||
size.report: $(APPS) | ||
ls -l $^ > $@ | ||
|
||
clean: | ||
rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin *.data *.text *.debug size.report *.o | ||
|
||
rmbak: | ||
rm -f *~ core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
CFLAGS += -DTARGET_Z80 | ||
|
||
SRCS = as0.c as1.c as2.c as3.c as4.c as6.c | ||
|
||
INCS = as.h obj.h | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
|
||
APPS = as nm | ||
|
||
all: $(APPS) | ||
|
||
$(OBJS): $(INCS) | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
|
||
$(OBJS): %.o : %.c | ||
$(CC) -c $(CFLAGS) $(COPT) $< | ||
|
||
as: $(CRT0) $(OBJS) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
nm: $(CRT0) nm.o | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
nm.c: obj.h | ||
|
||
size.report: $(APPS) | ||
ls -l $^ > $@ | ||
|
||
clean: | ||
rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin *.data *.text *.debug size.report *.o | ||
|
||
rmbak: | ||
rm -f *~ core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
|
||
LIBDIR =/usr/bin | ||
LDFLAGS = | ||
|
||
DEFS = | ||
|
||
OBJS = initials.o data.o error.o expr.o function.o gen.o io.o \ | ||
lex.o main.o outstack.o preproc.o primary.o stmt.o struct.o sym.o while.o | ||
|
||
OBJ_Z80 = codez80.o | ||
OBJ_8080 = code8080.o | ||
OBJ_6801 = code6801.o | ||
OBJ_6809 = code6809.o | ||
|
||
OBJ_COPT = copt.o | ||
|
||
INC = data.h defs.h prototype.h | ||
|
||
OBJS_ALL = $(OBJS) $(OBJ_Z80) $(OBJ_8080) | ||
all: scc6801 scc6809 scc8080 sccz80 copt | ||
|
||
sccz80: $(CRT0NS) $(OBJS) $(OBJ_Z80) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
scc8080: $(CRT0NS) $(OBJS) $(OBJ_8080) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(STRIP) -o $@.bin $(STRIP_OPT) $@.bin | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
scc6801: $(CRT0NS) $(OBJS) $(OBJ_6801) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(STRIP) -o $@.bin $(STRIP_OPT) $@.bin | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
scc6809: $(CRT0NS) $(OBJS) $(OBJ_6809) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(STRIP) -o $@.bin $(STRIP_OPT) $@.bin | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
copt: $(CRT0) $(OBJ_COPT) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(STRIP) -o $@.bin $(STRIP_OPT) $@.bin | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
.c.o: | ||
$(CC) $(COPT) $(CFLAGS) -c $< -o $@ | ||
|
||
$(OBJS_ALL) : $(INC) | ||
|
||
clean: | ||
rm -f scc8080 sccz80 scc6801 scc6809 copt | ||
rm -f *~ *.o *.asm *.lst *.sym *.o *.map *.noi *.bin *.data *.text *.lk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
|
||
SRCS = ac.c col.c dc.c diff.c ed.c makekey.c ptx.c sum.c wall.c | ||
SRCS += accton.c comm.c dd.c diffh.c mesg.c rev.c test.c | ||
SRCS += at.c cron.c deroff.c join.c newgrp.c split.c time.c | ||
SRCS += atrun.c crypt.c diff3.c look.c pr.c su.c tsort.c | ||
SRCS += pg.c tty.c | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
|
||
APPS = $(OBJS:.o=) | ||
|
||
all: $(APPS) size.report | ||
|
||
$(APPS): $(CRT0) | ||
|
||
$(APPS) $(APPSNS): %: %.o | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
size.report: $(APPS) | ||
ls -l $^ > $@ | ||
|
||
clean: | ||
rm -f *.o $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report *.o | ||
|
||
rmbak: | ||
rm -f *~ core | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
|
||
SRCS = args.c blok.c builtin.c cmd.c ctype.c error.c expand.c fault.c io.c \ | ||
macro.c main.c msg.c name.c print.c service.c setbrk.c stak.c \ | ||
string.c word.c xec.c glob.c | ||
|
||
INCS = brkincr.h ctype.h defs.h mac.h mode.h name.h stak.h sym.h timeout.h | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
|
||
all: fsh sh | ||
|
||
$(OBJS): $(INCS) | ||
FOBJS = $(patsubst %.c,fshbuild/%.o, $(SRCS)) | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
|
||
$(FOBJS): $(INCS) | ||
|
||
$(OBJS): %.o : %.c | ||
$(CC) -c $(CFLAGS) $(COPT) $< | ||
|
||
$(FOBJS): fshbuild/%.o: %.c | ||
$(CC) -c $(CFLAGS) $(COPT) -DBUILD_FSH $< -o $@ | ||
|
||
sh: $(CRT0) $(OBJS) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
fsh: $(CRT0) $(FOBJS) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
size.report: $(APPS) | ||
ls -l $^ > $@ | ||
|
||
clean: | ||
rm -f $(FOBJS) $(OBJS) sh fsh $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report *.o | ||
|
||
rmbak: | ||
rm -f *~ core | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
|
||
SRCS = arithmetic.c backgammon.c fish.c wump.c | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
|
||
APPS = $(OBJS:.o=) | ||
|
||
all: $(APPS) size.report | ||
|
||
$(APPS): $(CRT0) | ||
|
||
$(APPS) $(APPSNS): %: %.o | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
size.report: $(APPS) | ||
ls -l $^ > $@ | ||
|
||
clean: | ||
rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin *.data *.text *.debug size.report | ||
|
||
rmbak: | ||
rm -f *~ core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
|
||
OBJS =as.o assemble.o errors.o express.o \ | ||
genbin.o genlist.o genobj.o gensym.o \ | ||
keywords.o macro.o mops.o pops.o readsrc.o \ | ||
scan.o table.o typeconv.o alloc.o | ||
|
||
all: as09 | ||
|
||
as09: $(CRT0) $(OBJS) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
clean: | ||
rm -f *.o as09 *~ *.bin *.data *.text *.debug | ||
|
||
.c.o: | ||
$(CC) $(CFLAGS) $(COPT) -c $< | ||
|
||
$(OBJS): const.h errors.h | ||
|
||
as.o: const.h type.h byteord.h macro.h file.h flag.h globvar.h | ||
assemble.o: const.h type.h address.h globvar.h opcode.h scan.h | ||
error.o: const.h type.h | ||
express.o: const.h type.h address.h globvar.h scan.h source.h | ||
genbin.o: const.h type.h address.h file.h globvar.h | ||
genlist.o: const.h type.h address.h flag.h file.h globvar.h macro.h scan.h \ | ||
source.h | ||
genobj.o: const.h type.h address.h file.h globvar.h | ||
gensym.o: const.h type.h flag.h file.h globvar.h | ||
keywords.o: const.h type.h globvar.h opcode.h | ||
macro.o: const.h type.h globvar.h scan.h macro.h | ||
mops.o: const.h type.h globvar.h opcode.h scan.h address.h | ||
pops.o: const.h type.h address.h flag.h globvar.h opcode.h scan.h | ||
readsrc.o: const.h type.h flag.h file.h globvar.h macro.h scan.h source.h | ||
scan.o: const.h type.h globvar.h scan.h | ||
table.o: const.h type.h globvar.h opcode.h scan.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
|
||
SRC = advent.c adventdb.c database.c english.c itverb.c lib.c saveadv.c \ | ||
turn.c verb.c | ||
|
||
OBJ = $(SRC:.c=.o) | ||
|
||
.SUFFIXES: .c .o | ||
|
||
all: advent advent.db | ||
|
||
advent.db: advgen | ||
./advgen -x > advent.db | ||
|
||
advgen: advgen.c | ||
cc advgen.c -o ./advgen | ||
|
||
.c.o: | ||
$(CC) $(CFLAGS) $(CCOPTS) -c $< | ||
|
||
advent: $(CRT0) $(OBJ) | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
clean: | ||
rm -f $(OBJS) $(OBJSNS) $(APPS) $(APPSNS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report *.o | ||
|
||
rmbak: | ||
rm -f *~ core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
all: | ||
|
||
clean: | ||
rm -f *~ *.rel *.ihx *.tmp *.bin *.lst *.lk *.noi *.map cpm.def *.sym runcpm emulator runcpm.asm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
all: | ||
|
||
clean: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
LINKER_OPT += -lcurses$(PLATFORM) -ltermcap$(PLATFORM) -lc$(PLATFORM) | ||
|
||
SRCS = invaders.c | ||
OBJS = $(SRCS:.c=.o) | ||
APPS = $(OBJS:.o=) | ||
|
||
all: $(APPS) size.report | ||
|
||
$(APPS): $(CRT0) | ||
|
||
$(APPS) $(APPSNS): %: %.o | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
size.report: $(APPS) $(APPSNS) | ||
ls -l $^ > $@ | ||
|
||
clean: | ||
rm -f $(OBJS) $(APPS) *.o core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin *.data *.text *.debug size.report | ||
|
||
rmbak: | ||
rm -f *~ core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
|
||
APPS = flashrom | ||
|
||
SRCS = flashrom.c | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
|
||
all: $(APPS) size.report | ||
|
||
flashrom: $(CRT0) flashrom.o | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
size.report: $(APPS) | ||
ls -l $< > $@ | ||
|
||
clean: | ||
rm -f $(OBJS) $(APPS) $(SRCS:.c=) *.lst *.map *.bin *.data *.text *.debug size.report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
include $(FUZIX_ROOT)/Applications/rules.esp32 | ||
LINKER_OPT += -ltermcapesp32 | ||
|
||
SRCSNS = | ||
|
||
SRCS = adv01.c adv02.c adv03.c adv04.c adv05.c adv06.c adv07.c \ | ||
adv08.c adv09.c adv10.c adv11.c adv12.c adv13.c adv14a.c adv14b.c \ | ||
myst01.c myst02.c myst03.c myst04.c myst05.c myst06.c myst07.c \ | ||
myst08.c myst09.c myst10.c myst11.c fortune-gen.c qrun.c fortune.c \ | ||
z1.c z2.c z3.c z4.c z5.c z8.c startrek.c hamurabi.c cowsay.c advint.c | ||
|
||
SRCSFP = | ||
|
||
OBJS = $(SRCS:.c=.o) | ||
OBJSFP = $(SRCSFP:.c=.o) | ||
OBJSNS = $(SRCSNS:.c=.o) | ||
|
||
APPS = $(OBJS:.o=) | ||
APPSFP = $(OBJSFP:.o=) | ||
APPSNS = $(OBJSNS:.o=) | ||
|
||
CFLAGS += -DCONFIG_IO_CUSS | ||
|
||
all: $(APPS) $(APPSNS) $(APPSFP) size.report | ||
|
||
$(APPS): $(CRT0) | ||
$(APPSFP): $(CRT0) | ||
$(APPSNS): $(CRT0NS) | ||
|
||
$(APPS) $(APPSNS): %: %.o | ||
$(LINKER) $^ -o $@.bin $(LINKER_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
$(APPSFP): %: %.o | ||
$(LINKER) $^ -o $@.bin $(LINKER_FP_OPT) | ||
$(ELF2FUZIX) -o $@ $@.bin | ||
|
||
fortune-gen-linux: fortune-gen.c | ||
$(HOSTCC) -o $@ $< | ||
|
||
fortune.dat: fortune-gen-linux | ||
./fortune-gen-linux < fort.db >fortune.dat | ||
|
||
fortune: | fortune.dat | ||
|
||
|
||
size.report: $(APPS) $(APPSNS) | ||
ls -l $^ > $@ | ||
|
||
clean: | ||
rm -f $(OBJS) $(OBJSNS) $(APPS) $(APPSNS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report | ||
|
||
rmbak: | ||
rm -f *~ core |
Oops, something went wrong.