This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches. git-svn-id: svn://svn.cc65.org/cc65/trunk@3 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
63
src/ca65/make/gcc.mak
Normal file
63
src/ca65/make/gcc.mak
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# gcc Makefile for a65, link65 & libr65
|
||||
#
|
||||
|
||||
CFLAGS = -g -O2 -Wall
|
||||
CC = gcc
|
||||
LDFLAGS =
|
||||
|
||||
OBJS = condasm.o \
|
||||
ea.o \
|
||||
error.o \
|
||||
expr.o \
|
||||
fname.o \
|
||||
fragment.o \
|
||||
global.o \
|
||||
instr.o \
|
||||
listing.o \
|
||||
macpack.o \
|
||||
macro.o \
|
||||
main.o \
|
||||
mem.o \
|
||||
objcode.o \
|
||||
objfile.o \
|
||||
options.o \
|
||||
pseudo.o \
|
||||
scanner.o \
|
||||
strexpr.o \
|
||||
symtab.o \
|
||||
toknode.o \
|
||||
ulabel.o
|
||||
|
||||
LIBS = ../common/common.a
|
||||
|
||||
EXECS = ca65
|
||||
|
||||
.PHONY: all
|
||||
ifeq (.depend,$(wildcard .depend))
|
||||
all : $(EXECS)
|
||||
include .depend
|
||||
else
|
||||
all: depend
|
||||
@$(MAKE) -f make/gcc.mak all
|
||||
endif
|
||||
|
||||
|
||||
|
||||
ca65: $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *~ core *.lst
|
||||
|
||||
zap: clean
|
||||
rm -f *.o $(EXECS) .depend
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Make the dependencies
|
||||
|
||||
.PHONY: depend dep
|
||||
depend dep: $(OBJS:.o=.c)
|
||||
@echo "Creating dependency information"
|
||||
$(CC) -MM $^ > .depend
|
||||
|
||||
140
src/ca65/make/watcom.mak
Normal file
140
src/ca65/make/watcom.mak
Normal file
@@ -0,0 +1,140 @@
|
||||
#
|
||||
# CA65 Makefile for the Watcom compiler
|
||||
#
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Generic stuff
|
||||
|
||||
.AUTODEPEND
|
||||
.SUFFIXES .ASM .C .CC .CPP
|
||||
.SWAP
|
||||
|
||||
AR = WLIB
|
||||
LD = WLINK
|
||||
|
||||
!if !$d(TARGET)
|
||||
!if $d(__OS2__)
|
||||
TARGET = OS2
|
||||
!else
|
||||
TARGET = NT
|
||||
!endif
|
||||
!endif
|
||||
|
||||
# target specific macros.
|
||||
!if $(TARGET)==OS2
|
||||
|
||||
# --------------------- OS2 ---------------------
|
||||
SYSTEM = os2v2
|
||||
CC = WCC386
|
||||
CCCFG = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
|
||||
|
||||
!elif $(TARGET)==DOS32
|
||||
|
||||
# -------------------- DOS4G --------------------
|
||||
SYSTEM = dos4g
|
||||
CC = WCC386
|
||||
CCCFG = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
|
||||
|
||||
!elif $(TARGET)==DOS
|
||||
|
||||
# --------------------- DOS ---------------------
|
||||
SYSTEM = dos
|
||||
CC = WCC
|
||||
CCCFG = -bt=$(TARGET) -d1 -onatx -zp2 -2 -ml -zq -w2
|
||||
|
||||
!elif $(TARGET)==NT
|
||||
|
||||
# --------------------- NT ----------------------
|
||||
SYSTEM = nt
|
||||
CC = WCC386
|
||||
CCCFG = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
|
||||
|
||||
!else
|
||||
!error
|
||||
!endif
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Implicit rules
|
||||
|
||||
.c.obj:
|
||||
$(CC) $(CCCFG) $<
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# All library OBJ files
|
||||
|
||||
OBJS = condasm.obj \
|
||||
ea.obj \
|
||||
error.obj \
|
||||
expr.obj \
|
||||
fname.obj \
|
||||
fragment.obj \
|
||||
global.obj \
|
||||
instr.obj \
|
||||
listing.obj \
|
||||
macpack.obj \
|
||||
macro.obj \
|
||||
main.obj \
|
||||
mem.obj \
|
||||
objcode.obj \
|
||||
objfile.obj \
|
||||
options.obj \
|
||||
pseudo.obj \
|
||||
scanner.obj \
|
||||
strexpr.obj \
|
||||
symtab.obj \
|
||||
toknode.obj \
|
||||
ulabel.obj
|
||||
|
||||
LIBS = ..\common\common.lib
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Main targets
|
||||
|
||||
all: ca65
|
||||
|
||||
ca65: ca65.exe
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Other targets
|
||||
|
||||
|
||||
ca65.exe: $(OBJS) $(LIBS)
|
||||
$(LD) system $(SYSTEM) @&&|
|
||||
DEBUG ALL
|
||||
OPTION QUIET
|
||||
NAME $<
|
||||
FILE condasm.obj
|
||||
FILE ea.obj
|
||||
FILE error.obj
|
||||
FILE expr.obj
|
||||
FILE fname.obj
|
||||
FILE fragment.obj
|
||||
FILE global.obj
|
||||
FILE instr.obj
|
||||
FILE listing.obj
|
||||
FILE macpack.obj
|
||||
FILE macro.obj
|
||||
FILE main.obj
|
||||
FILE mem.obj
|
||||
FILE objcode.obj
|
||||
FILE objfile.obj
|
||||
FILE options.obj
|
||||
FILE pseudo.obj
|
||||
FILE scanner.obj
|
||||
FILE strexpr.obj
|
||||
FILE symtab.obj
|
||||
FILE toknode.obj
|
||||
FILE ulabel.obj
|
||||
LIBRARY ..\common\common.lib
|
||||
|
|
||||
|
||||
clean:
|
||||
@if exist *.obj del *.obj
|
||||
@if exist ca65.exe del ca65.exe
|
||||
|
||||
strip:
|
||||
@-wstrip ca65.exe
|
||||
|
||||
Reference in New Issue
Block a user