From 303304fe90f7650dcc88166e18e785e58ad73255 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 26 Oct 2004 19:28:26 +0000 Subject: [PATCH] Add definitions for tools so the makefile is useful by itself. git-svn-id: svn://svn.cc65.org/cc65/trunk@3262 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/apple2/Makefile | 12 ++++++++++++ libsrc/apple2enh/Makefile | 12 ++++++++++++ libsrc/atari/Makefile | 12 ++++++++++++ libsrc/atmos/Makefile | 12 ++++++++++++ libsrc/c128/Makefile | 12 ++++++++++++ libsrc/c16/Makefile | 12 ++++++++++++ libsrc/c64/Makefile | 12 ++++++++++++ libsrc/cbm510/Makefile | 12 ++++++++++++ libsrc/cbm610/Makefile | 12 ++++++++++++ libsrc/common/Makefile | 12 ++++++++++++ libsrc/conio/Makefile | 12 ++++++++++++ libsrc/dbg/Makefile | 12 ++++++++++++ libsrc/em/Makefile | 14 +++++++++++++- libsrc/joystick/Makefile | 14 +++++++++++++- libsrc/lynx/Makefile | 18 +++++++++++++++++- libsrc/mouse/Makefile | 12 ++++++++++++ libsrc/nes/Makefile | 12 ++++++++++++ libsrc/pet/Makefile | 13 +++++++++++++ libsrc/plus4/Makefile | 14 +++++++++++++- libsrc/runtime/Makefile | 12 ++++++++++++ libsrc/serial/Makefile | 12 ++++++++++++ libsrc/supervision/Makefile | 14 +++++++++++++- libsrc/tgi/Makefile | 12 ++++++++++++ libsrc/zlib/Makefile | 12 ++++++++++++ 24 files changed, 298 insertions(+), 5 deletions(-) diff --git a/libsrc/apple2/Makefile b/libsrc/apple2/Makefile index 6d7142b4d..aade3112f 100644 --- a/libsrc/apple2/Makefile +++ b/libsrc/apple2/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = apple2 + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/apple2enh/Makefile b/libsrc/apple2enh/Makefile index 689e31aa6..49fb853f6 100644 --- a/libsrc/apple2enh/Makefile +++ b/libsrc/apple2enh/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = apple2enh + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/atari/Makefile b/libsrc/atari/Makefile index 607b75cc6..3c40eff34 100644 --- a/libsrc/atari/Makefile +++ b/libsrc/atari/Makefile @@ -15,6 +15,18 @@ ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1 -DDEFAULT_DEVICE=1 -DLINEBUF=80 .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = atari + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/atmos/Makefile b/libsrc/atmos/Makefile index d95b15df5..3e53aae10 100644 --- a/libsrc/atmos/Makefile +++ b/libsrc/atmos/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = atmos + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/c128/Makefile b/libsrc/c128/Makefile index e615f9f74..46f229c0c 100644 --- a/libsrc/c128/Makefile +++ b/libsrc/c128/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = c128 + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/c16/Makefile b/libsrc/c16/Makefile index 0505d31c5..a9bffbbf7 100644 --- a/libsrc/c16/Makefile +++ b/libsrc/c16/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = c16 + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/c64/Makefile b/libsrc/c64/Makefile index e6d171996..4771f79d7 100644 --- a/libsrc/c64/Makefile +++ b/libsrc/c64/Makefile @@ -5,6 +5,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = c64 + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/cbm510/Makefile b/libsrc/cbm510/Makefile index e1f6c43e0..b9d9e3666 100644 --- a/libsrc/cbm510/Makefile +++ b/libsrc/cbm510/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = cbm510 + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/cbm610/Makefile b/libsrc/cbm610/Makefile index 3e6fc71cd..578350474 100644 --- a/libsrc/cbm610/Makefile +++ b/libsrc/cbm610/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = cbm610 + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/common/Makefile b/libsrc/common/Makefile index 9a14ffbed..7f3babe33 100644 --- a/libsrc/common/Makefile +++ b/libsrc/common/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/conio/Makefile b/libsrc/conio/Makefile index 12c60a27b..b19abe9cb 100644 --- a/libsrc/conio/Makefile +++ b/libsrc/conio/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/dbg/Makefile b/libsrc/dbg/Makefile index 61ccf309a..a7fbe923f 100644 --- a/libsrc/dbg/Makefile +++ b/libsrc/dbg/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/em/Makefile b/libsrc/em/Makefile index 28d67b0ac..9061fca1d 100644 --- a/libsrc/em/Makefile +++ b/libsrc/em/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules @@ -37,7 +49,7 @@ S_OBJS = em-kernel.o \ all: $(C_OBJS) $(S_OBJS) clean: - @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) + @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) zap: clean diff --git a/libsrc/joystick/Makefile b/libsrc/joystick/Makefile index c1441847f..e1099a5e7 100644 --- a/libsrc/joystick/Makefile +++ b/libsrc/joystick/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules @@ -32,7 +44,7 @@ S_OBJS = joy-kernel.o \ all: $(C_OBJS) $(S_OBJS) clean: - @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) + @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) zap: clean diff --git a/libsrc/lynx/Makefile b/libsrc/lynx/Makefile index 23ceeb7cf..f2b5faa81 100644 --- a/libsrc/lynx/Makefile +++ b/libsrc/lynx/Makefile @@ -5,6 +5,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = lynx + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules @@ -34,9 +46,13 @@ # Object files OBJS = crt0.o \ + ctype.o \ eeprom.o \ framerate.o \ - upload.o + getenv.o \ + mainargs.o \ + sysuname.o \ + upload.o #-------------------------------------------------------------------------- # Drivers diff --git a/libsrc/mouse/Makefile b/libsrc/mouse/Makefile index 7b0623061..4c30e0805 100644 --- a/libsrc/mouse/Makefile +++ b/libsrc/mouse/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/nes/Makefile b/libsrc/nes/Makefile index e0abce806..ee18b60a3 100644 --- a/libsrc/nes/Makefile +++ b/libsrc/nes/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = nes + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/pet/Makefile b/libsrc/pet/Makefile index ad67bd253..8671414ae 100644 --- a/libsrc/pet/Makefile +++ b/libsrc/pet/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = pet + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules @@ -26,6 +38,7 @@ OBJS = _scrsize.o \ conio.o \ cputc.o \ crt0.o \ + get_tv.o \ kbhit.o \ kbsout.o \ kchkin.o \ diff --git a/libsrc/plus4/Makefile b/libsrc/plus4/Makefile index cb2869740..00a63c4d0 100644 --- a/libsrc/plus4/Makefile +++ b/libsrc/plus4/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = c16 + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules @@ -94,5 +106,5 @@ clean: @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o) zap: clean - @$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS) + @$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS) diff --git a/libsrc/runtime/Makefile b/libsrc/runtime/Makefile index cdec13dfe..a591ae63a 100644 --- a/libsrc/runtime/Makefile +++ b/libsrc/runtime/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/serial/Makefile b/libsrc/serial/Makefile index e1dbfbd00..a77a31ce5 100644 --- a/libsrc/serial/Makefile +++ b/libsrc/serial/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/supervision/Makefile b/libsrc/supervision/Makefile index 340fa7656..09a4d91fe 100644 --- a/libsrc/supervision/Makefile +++ b/libsrc/supervision/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = supervision + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules @@ -20,7 +32,7 @@ C_OBJS = S_OBJS = crt0.o \ - ctype.o + ctype.o #-------------------------------------------------------------------------- # Targets diff --git a/libsrc/tgi/Makefile b/libsrc/tgi/Makefile index 3f13d37ae..bc3da9092 100644 --- a/libsrc/tgi/Makefile +++ b/libsrc/tgi/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules diff --git a/libsrc/zlib/Makefile b/libsrc/zlib/Makefile index 85c5bc642..53d22743e 100644 --- a/libsrc/zlib/Makefile +++ b/libsrc/zlib/Makefile @@ -4,6 +4,18 @@ .SUFFIXES: .o .s .c +#-------------------------------------------------------------------------- +# Programs and flags + +SYS = none + +AS = ../../src/ca65/ca65 +CC = ../../src/cc65/cc65 +LD = ../../src/ld65/ld65 + +AFLAGS = -t $(SYS) -I../../asminc +CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include + #-------------------------------------------------------------------------- # Rules -- 2.39.5