Remove all references to the GC library, replacing GC_malloc
[fw/sdcc] / debugger / mcs51 / Makefile.in
1 #
2 #
3 #
4
5 VERSION         = @VERSION@
6 VERSIONHI       = @VERSIONHI@
7 VERSIONLO       = @VERSIONLO@
8 VERSIONP        = @VERSIONP@
9
10 SHELL           = /bin/sh
11 CC              = @CC@
12 CPP             = @CPP@
13 INSTALL         = @INSTALL@
14
15 PRJDIR          = ../..
16
17 srcdir          = @srcdir@
18 prefix          = @prefix@
19 exec_prefix     = ${prefix}
20 bindir          = ${exec_prefix}/bin
21 libdir          = ${exec_prefix}/lib
22 datadir         = @datadir@
23 includedir      = ${prefix}/include
24 mandir          = ${prefix}/man
25 man1dir         = $(mandir)/man1
26 man2dir         = $(mandir)/man2
27 infodir         = ${prefix}/info
28
29 STD_INC         = @sdcc_include_dir@
30 CPPFLAGS        = @CPPFLAGS@ -I. -I$(PRJDIR) -I$(PRJDIR)/support
31 CFLAGS          = @CFLAGS@
32 M_OR_MM         = @M_OR_MM@
33 LDFLAGS         = @LDFLAGS@
34
35 LIBS            = @LIBS@
36 LIBDIRS         =
37
38
39 OBJECTS         = sdcdb.o symtab.o simi.o $(PRJDIR)/src/SDCCset.o \
40                   break.o cmd.o $(PRJDIR)/src/SDCChasht.o \
41                   $(PRJDIR)/src/SDCCerr.o
42 SOURCES         = $(patsubst %.o,%.c,$(OBJECTS))
43
44 TARGET          = $(PRJDIR)/bin/sdcdb
45
46
47 # Compiling entire program or any subproject
48 # ------------------------------------------
49 all: checkconf $(TARGET)
50
51 # Compiling and installing everything and runing test
52 # ---------------------------------------------------
53 install: all installdirs
54         $(INSTALL) -s $(TARGET) $(bindir)/sdcdb
55         cp $(PRJDIR)/debugger/mcs51/sdcdb.el $(bindir)/sdcdb.el
56         cp $(PRJDIR)/debugger/mcs51/sdcdbsrc.el $(bindir)/sdcdbsrc.el
57
58
59 # Deleting all the installed files
60 # --------------------------------
61 uninstall:
62         rm -f $(bindir)/sdcdb
63
64
65 # Performing self-test
66 # --------------------
67 check:
68
69
70 # Performing installation test
71 # ----------------------------
72 installcheck:
73
74
75 # Creating installation directories
76 # ---------------------------------
77 installdirs:
78         $(INSTALL) -d $(bindir)
79
80
81 # Creating dependencies
82 # ---------------------
83 dep: Makefile.dep
84
85 Makefile.dep: $(SOURCES) *.h $(PRJDIR)/*.h
86         $(CPP) $(CPPFLAGS) $(M_OR_MM) $(SOURCES) >Makefile.dep
87
88 include Makefile.dep
89 include clean.mk
90
91 # My rules
92 # --------
93 $(TARGET): $(OBJECTS)
94         $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBDIRS) $(LIBS)
95
96 .c.o:
97         $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
98
99
100 # Remaking configuration
101 # ----------------------
102 checkconf:
103         @if [ -f $(PRJDIR)/devel ]; then\
104           $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
105         fi
106
107 # End of cpp/Makefile