Libary: Link syslib.lib to c.lib (which is the name fcc expects to use)
Applications: Use fcc to build, remove reference to env.c and uname.c
which are not present in the git repository.
ASM = sdasz80
AR = sdar
LINKER = sdcc
+FCC = ../../Library/tools/fcc
PROGLOAD=`(cat ../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1`
du.c \
echo.c \
ed.c \
- env.c \
false.c \
fdisk.c \
fgrep.c \
tr.c \
true.c \
umount.c \
- uname.c \
uniq.c \
uud.c \
uue.c \
$(CC) $(CC_CRAP) $(@:.rel=.c)
.c.rel:
- $(CC) $(CC_OPT) $(@:.rel=.c)
+ $(FCC) -c $<
%: %.rel
- $(LINKER) $(LINKER_OPT) ../../Library/libs/crt0.rel $< $(LIBS) -o $@.ihx
- makebin -s 65536 $@.ihx $@.tmp
- $(BINMAN) $(PROGLOAD) $@.tmp $@.map $@
- chmod +x $@
+ $(FCC) $< -o $@
clean:
rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp
cp sdccz80.lib syslib.lib
$(AR) rc syslib.lib @syslib.l
$(AR) s syslib.lib
+ ln -s syslib.lib c.lib
fuzix/syslib.l:
../tools/syscall