# gcc Makefile for ar65
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = ar65
+
# Library dir
COMMON = ../common
LIBS = $(COMMON)/common.a
-EXECS = ar65
+# ------------------------------------------------------------------------------
+# Makefile targets
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all : $(EXECS)
+all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-
-
-ar65: $(OBJS) $(LIBS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
- @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
+$(EXE): $(OBJS) $(LIBS)
+ $(CC) $^ $(LDFLAGS) -o $@
+ @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
- $(RM) *~ core
+ $(RM) *~ core.* *.map
zap: clean
- $(RM) *.o $(EXECS) .depend
+ $(RM) *.o $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
# gcc Makefile for ca65
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = ca65
+
# Library dir
COMMON = ../common
symtab.o \
token.o \
toklist.o \
- ulabel.o
+ ulabel.o
# -----------------------------------------------------------------------------
# List of all macro files
INCS = atari.inc \
cbm.inc \
- cpu.inc \
- generic.inc \
+ cpu.inc \
+ generic.inc \
longbranch.inc
-# -----------------------------------------------------------------------------
-
LIBS = $(COMMON)/common.a
-EXECS = ca65
+# ------------------------------------------------------------------------------
+# Makefile targets
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all : $(EXECS)
+all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-ca65: $(INCS) $(OBJS) $(LIBS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
- @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
+$(EXE): $(INCS) $(OBJS) $(LIBS)
+ $(CC) $(OBJS) $(LIBS) $(LDFLAGS) -o $@
+ @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
inc: $(INCS)
clean:
- rm -f *~ core *.lst
+ $(RM) *~ core.* *.map
zap: clean
- rm -f *.o $(EXECS) $(INCS) .depend
+ $(RM) *.o $(EXE) $(INCS) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
endif
$(EXE): $(OBJS) $(LIBS)
- $(CC) $(LDFLAGS) -o $(EXE) $(CFLAGS) $(OBJS) $(LIBS)
+ $(CC) $^ $(LDFLAGS) -o $@
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
- $(RM) *~ core *.map
+ $(RM) *~ core.* *.map
zap: clean
$(RM) *.o $(EXE) .depend
# Makefile for the cl65 compile&link utility
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = cl65
+
# Library dir
COMMON = ../common
LIBS = $(COMMON)/common.a
-EXECS = cl65
-
+# ------------------------------------------------------------------------------
+# Makefile targets
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all : $(EXECS)
+all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-
-cl65: $(OBJS) $(LIBS)
- $(CC) $(LDFLAGS) -o cl65 $(OBJS) $(LIBS)
- @if [ $(OS2_SHELL) ] ; then $(EBIND) cl65 ; fi
+$(EXE): $(OBJS) $(LIBS)
+ $(CC) $^ $(LDFLAGS) -o $@
+ @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
- $(RM) *~ core
+ $(RM) *~ core.* *.map
zap: clean
- $(RM) *.o $(EXECS) .depend
-
+ $(RM) *.o $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
# gcc Makefile for co65
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = co65
+
# Library dir
COMMON = ../common
LIBS = $(COMMON)/common.a
-EXECS = co65
+# ------------------------------------------------------------------------------
+# Makefile targets
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all : $(EXECS)
+all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-
-
-co65: $(OBJS) $(LIBS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
- @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
+$(EXE): $(OBJS) $(LIBS)
+ $(CC) $^ $(LDFLAGS) -o $@
+ @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
- $(RM) *~ core *.lst
+ $(RM) *~ core.* *.map
zap: clean
- $(RM) *.o $(EXECS) .depend
+ $(RM) *.o $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
-#
+#
# gcc Makefile for da65
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = da65
+
# Library dir
COMMON = ../common
LIBS = $(COMMON)/common.a
-EXECS = da65
+# ------------------------------------------------------------------------------
+# Makefile targets
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all : $(EXECS)
+all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-
-
-da65: $(OBJS) $(LIBS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
- @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
+$(EXE): $(OBJS) $(LIBS)
+ $(CC) $^ $(LDFLAGS) -o $@
+ @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
- $(RM) *~ core *.map
+ $(RM) *~ core.* *.map
zap: clean
- $(RM) *.o $(EXECS) .depend
-
+ $(RM) *.o $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
# gcc Makefile for grc
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = grc
+
COMMON = ../common
CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
OBJS = grc.o
-EXECS = grc
-
LIBS = $(COMMON)/common.a
+# ------------------------------------------------------------------------------
+# Makefile targets
+
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all : $(EXECS)
+all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-
-
-grc: $(OBJS) $(LIBS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
- @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
+$(EXE): $(OBJS) $(LIBS)
+ $(CC) $^ $(LDFLAGS) -o $@
+ @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
- $(RM) *~ core *.lst
+ $(RM) *~ core.* *.map
zap: clean
- $(RM) *.o $(EXECS) .depend
+ $(RM) *.o $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
# gcc Makefile for ld65
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = ld65
+
# Library dir
COMMON = ../common
supervision.inc \
vic20.inc
-# -----------------------------------------------------------------------------
-#
-
LIBS = $(COMMON)/common.a
-EXECS = ld65
+# ------------------------------------------------------------------------------
+# Makefile targets
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all : $(EXECS)
+all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-
-
-ld65: $(INCS) $(OBJS) $(LIBS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
- @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
-
-inc: $(INCS)
+$(EXE): $(INCS) $(OBJS) $(LIBS)
+ $(CC) $(OBJS) $(LIBS) $(LDFLAGS) -o $@
+ @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
- $(RM) *~ core *.map
-
-zap: clean
- $(RM) *.o $(INCS) $(EXECS) .depend
+ $(RM) *~ core.* *.map
+zap: clean
+ $(RM) *.o $(INCS) $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = od65
+
# Library dir
COMMON = ../common
LIBS = $(COMMON)/common.a
-EXE = od65
-
+# ------------------------------------------------------------------------------
+# Makefile targets
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all: $(EXE)
+all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-
-$(EXE): $(OBJS)
- $(CC) $(LDFLAGS) -o $(EXE) $(CFLAGS) $(OBJS) $(LIBS)
+$(EXE): $(OBJS) $(LIBS)
+ $(CC) $^ $(LDFLAGS) -o $@
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
- $(RM) *~ core *.map
+ $(RM) *~ core.* *.map
zap: clean
$(RM) *.o $(EXE) .depend
# gcc Makefile for sim65
#
+# ------------------------------------------------------------------------------
+
+# The executable to build
+EXE = sim65
+
# Library dir
COMMON = ../common
LIBS = $(COMMON)/common.a
-EXECS = sim65
+# ------------------------------------------------------------------------------
+# Makefile targets
+# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
-all: $(EXECS) chips
+all: $(EXE) chips
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
-
-sim65: $(OBJS) $(LIBS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) -ldl
- @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
+$(EXE): $(OBJS) $(LIBS)
+ $(CC) $^ $(LDFLAGS) -o $@
+ @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
.PHONY: chips
chips:
@$(MAKE) -C chips -f make/gcc.mak
-
clean:
- @$(MAKE) -C chips -f make/gcc.mak clean
- $(RM) *~ core *.lst
+ $(RM) *~ core.* *.map
-zap: clean
- @$(MAKE) -C chips -f make/gcc.mak zap
- $(RM) *.o $(EXECS) .depend
+zap: clean
+ $(RM) *.o $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies