Removed silly lib files
[fw/sdcc] / support / cpp / Makefile
1 # Generated automatically from Makefile.in by configure.
2 #
3 #
4 #
5
6 VERSION         = 2.1.9Ga
7 VERSIONHI       = 2
8 VERSIONLO       = 1
9 VERSIONP        = 9Ga
10
11 SHELL           = /bin/sh
12 CC              = gcc
13 CPP             = gcc -E
14 INSTALL         = /usr/bin/install -c
15
16 PRJDIR          = ../..
17
18 srcdir          = .
19 prefix          = /usr/local
20 exec_prefix     = ${prefix}
21 bindir          = ${exec_prefix}/bin
22 libdir          = ${exec_prefix}/lib
23 datadir         = ${prefix}/share
24 includedir      = ${prefix}/include
25 mandir          = ${prefix}/man
26 man1dir         = $(mandir)/man1
27 man2dir         = $(mandir)/man2
28 infodir         = ${prefix}/info
29
30 STD_INC         = @sdcc_include_dir@
31 CPPFLAGS        =  -I. -I$(PRJDIR) -D_FORASXXXX_
32 CFLAGS          = -ggdb -O2 -pipe
33 M_OR_MM         = -MM
34 LDFLAGS         = 
35
36 OBJECTS         = cppalloc.o cpperror.o cppexp.o cpphash.o cpplib.o cppmain.o 
37 SOURCES         = $(patsubst %.o,%.c,$(OBJECTS))
38
39 TARGET          = $(PRJDIR)/bin/sdcpp
40
41
42 # Compiling entire program or any subproject
43 # ------------------------------------------
44 all: checkconf $(TARGET)
45
46 $(TARGET): $(OBJECTS)
47         $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
48
49 # Compiling and installing everything and runing test
50 # ---------------------------------------------------
51 install: all installdirs
52         $(INSTALL) -s $(TARGET) $(bindir)/sdcpp
53
54
55 # Deleting all the installed files
56 # --------------------------------
57 uninstall:
58         rm -f $(bindir)/sdcpp
59
60
61 # Performing self-test
62 # --------------------
63 check:
64
65
66 # Performing installation test
67 # ----------------------------
68 installcheck:
69
70
71 # Creating installation directories
72 # ---------------------------------
73 installdirs:
74         $(INSTALL) -d $(bindir)
75
76
77 # Creating dependencies
78 # ---------------------
79 dep: Makefile.dep
80
81 Makefile.dep: $(SOURCES) *.h $(PRJDIR)/*.h
82         $(CPP) $(CPPFLAGS) $(M_OR_MM) $(SOURCES) >Makefile.dep
83
84 include Makefile.dep
85 include clean.mk
86
87 # My rules
88 # --------
89 .c.o:
90         $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
91
92
93 # Remaking configuration
94 # ----------------------
95 checkconf:
96         @if [ -f $(PRJDIR)/devel ]; then\
97           $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
98         fi
99
100 # End of cpp/Makefile