]> git.sur5r.net Git - cc65/blob - src/grc/make/gcc.mak
Fix codesize setting
[cc65] / src / grc / make / gcc.mak
1 #
2 # gcc Makefile for grc
3 #
4
5 CFLAGS  = -g -O2 -Wall -W
6 CC      = gcc
7 LDFLAGS =
8 EBIND   = emxbind
9
10 OBJS =  grc.o
11
12 EXECS = grc
13
14 .PHONY: all
15 ifeq (.depend,$(wildcard .depend))
16 all : $(EXECS)
17 include .depend
18 else
19 all:    depend
20         @$(MAKE) -f make/gcc.mak all
21 endif
22
23
24
25 grc:    $(OBJS) $(LIBS)
26         $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
27         @if [ $(OS2_SHELL) ] ;  then $(EBIND) $@ ; fi
28
29 clean:
30         rm -f *~ core *.lst
31
32 zap:    clean
33         rm -f *.o $(EXECS) .depend
34
35 # ------------------------------------------------------------------------------
36 # Make the dependencies
37
38 .PHONY: depend dep
39 depend dep:     $(OBJS:.o=.c)
40         @echo "Creating dependency information"
41         $(CC) -MM $^ > .depend
42
43