mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
Created a gcc makefile for grc
git-svn-id: svn://svn.cc65.org/cc65/trunk@107 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
53485bc321
commit
8b971f7c73
41
src/grc/make/gcc.mak
Normal file
41
src/grc/make/gcc.mak
Normal file
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user