Files
cc65/src/common/make/gcc.mak
cuz 37da7dff98 Add a new chartype module for character classification. Use the new
function IsDigit in target.c.


git-svn-id: svn://svn.cc65.org/cc65/trunk@592 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-01-05 19:06:20 +00:00

63 lines
868 B
Makefile

#
# gcc Makefile for the binutils common stuff
#
CFLAGS = -g -O2 -Wall
CC = gcc
LDFLAGS =
LIB = common.a
OBJS = abend.o \
bitops.o \
chartype.o \
check.o \
cmdline.o \
coll.o \
exprdefs.o \
filepos.o \
fname.o \
hashstr.o \
target.o \
tgttrans.o \
xmalloc.o \
xsprintf.o
# ------------------------------------------------------------------------------
# Dummy targets
.PHONY: all
ifeq (.depend,$(wildcard .depend))
all: lib
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
.PHONY: lib
lib: $(LIB)
$(LIB): $(OBJS)
$(AR) rs $(LIB) $?
clean:
rm -f *~ core *.map
zap: clean
rm -f *.o $(LIB) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -MM $^ > .depend