]> git.sur5r.net Git - cc65/blob - src/dbginfo/make/gcc.mak
One more place where OutputNameUsed must be flagged.
[cc65] / src / dbginfo / make / gcc.mak
1 #
2 # Makefile for the debug info test executable
3 #
4
5
6
7
8 # ------------------------------------------------------------------------------
9
10 # The executable to build
11 EXE     = dbgtest
12
13 #
14 CC      = gcc
15 CFLAGS  = -g -O2 -Wall -W
16 EBIND   = emxbind
17 LDFLAGS =
18
19 # ------------------------------------------------------------------------------
20 # Object files to link
21
22 OBJS =  dbginfo.o       \
23         dbgtest.o
24
25
26 # ------------------------------------------------------------------------------
27 # Makefile targets
28
29 # Main target - must be first
30 .PHONY: all
31 ifeq (.depend,$(wildcard .depend))
32 all:    $(EXE)
33 include .depend
34 else
35 all:    depend
36         @$(MAKE) -f make/gcc.mak all
37 endif
38
39 $(EXE): $(OBJS)
40         $(CC) $(OBJS) $(LDFLAGS) -o $@
41         @if [ $(OS2_SHELL) ] ;  then $(EBIND) $(EXE) ; fi
42
43 clean:
44         $(RM) *~ core.* *.map
45
46 zap:    clean
47         $(RM) $(OBJS) $(EXE) .depend
48
49 # ------------------------------------------------------------------------------
50 # Make the dependencies
51
52 .PHONY: depend dep
53 depend dep:     $(OBJS:.o=.c)
54         @echo "Creating dependency information"
55         $(CC) -MM $^ > .depend
56
57
58