From 8b971f7c7397d5c15047c256e7ee5a2ed61aa6db Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 22 Jun 2000 21:02:43 +0000 Subject: [PATCH] Created a gcc makefile for grc git-svn-id: svn://svn.cc65.org/cc65/trunk@107 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/grc/make/gcc.mak | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/grc/make/gcc.mak diff --git a/src/grc/make/gcc.mak b/src/grc/make/gcc.mak new file mode 100644 index 000000000..7e5398b7e --- /dev/null +++ b/src/grc/make/gcc.mak @@ -0,0 +1,41 @@ +# +# gcc Makefile for grc +# + +CFLAGS = -g -O2 -Wall +CC = gcc +LDFLAGS = + +OBJS = grc.o + +EXECS = grc + +.PHONY: all +ifeq (.depend,$(wildcard .depend)) +all : $(EXECS) +include .depend +else +all: depend + @$(MAKE) -f make/gcc.mak all +endif + + + +grc: $(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 + + -- 2.39.5