1 # Generated automatically from Makefile.in by configure.
14 INSTALL = /usr/bin/install -c
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
30 STD_INC = @sdcc_include_dir@
31 CPPFLAGS = -I. -I$(PRJDIR) -D_FORASXXXX_
32 CFLAGS = -ggdb -O2 -pipe
36 OBJECTS = cppalloc.o cpperror.o cppexp.o cpphash.o cpplib.o cppmain.o
37 SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
39 TARGET = $(PRJDIR)/bin/sdcpp
42 # Compiling entire program or any subproject
43 # ------------------------------------------
44 all: checkconf $(TARGET)
47 $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
49 # Compiling and installing everything and runing test
50 # ---------------------------------------------------
51 install: all installdirs
52 $(INSTALL) -s $(TARGET) $(bindir)/sdcpp
55 # Deleting all the installed files
56 # --------------------------------
61 # Performing self-test
62 # --------------------
66 # Performing installation test
67 # ----------------------------
71 # Creating installation directories
72 # ---------------------------------
74 $(INSTALL) -d $(bindir)
77 # Creating dependencies
78 # ---------------------
81 Makefile.dep: $(SOURCES) *.h $(PRJDIR)/*.h
82 $(CPP) $(CPPFLAGS) $(M_OR_MM) $(SOURCES) >Makefile.dep
90 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
93 # Remaking configuration
94 # ----------------------
96 @if [ -f $(PRJDIR)/devel ]; then\
97 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
100 # End of cpp/Makefile