* sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references...
[fw/sdcc] / sim / ucsim / cmd.src / Makefile.in
1 #
2 # ucsim cmd.src/Makefile
3 #
4 # (c) Drotos Daniel, Talker Bt. 1997
5 #
6
7 STARTYEAR       = 1997
8
9 SHELL           = /bin/sh
10 CXX             = @CXX@
11 CPP             = @CPP@
12 CXXCPP          = @CXXCPP@
13 RANLIB          = @RANLIB@
14 INSTALL         = @INSTALL@
15
16 PRJDIR          = ..
17
18 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
19 CPPFLAGS        = @CPPFLAGS@ -I. -I$(PRJDIR) \
20                   -I$(PRJDIR)/sim.src -I$(PRJDIR)/gui.src
21 CFLAGS          = @CFLAGS@ -Wall
22 CXXFLAGS        = @CXXFLAGS@ -Wall
23 M_OR_MM         = @M_OR_MM@
24
25 prefix          = @prefix@
26 exec_prefix     = @exec_prefix@
27 bindir          = @bindir@
28 libdir          = @libdir@
29 datadir         = @datadir@
30 includedir      = @includedir@
31 mandir          = @mandir@
32 man1dir         = $(mandir)/man1
33 man2dir         = $(mandir)/man2
34 infodir         = @infodir@
35 srcdir          = @srcdir@
36
37 OBJECTS         = cmdset.o newcmd.o cmdutil.o syntax.o \
38                   get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
39                   cmduc.o
40
41
42 # Compiling entire program or any subproject
43 # ------------------------------------------
44 all: checkconf cmdlib
45
46 cmd.src: all
47
48
49 # Compiling and installing everything and runing test
50 # ---------------------------------------------------
51 install: all installdirs
52
53
54 # Deleting all the installed files
55 # --------------------------------
56 uninstall:
57
58
59 # Performing self-test
60 # --------------------
61 check:
62
63
64 # Performing installation test
65 # ----------------------------
66 installcheck:
67
68
69 # Creating installation directories
70 # ---------------------------------
71 installdirs:
72
73
74 # Creating dependencies
75 # ---------------------
76 dep: Makefile.dep
77
78 Makefile.dep: *.cc *.h
79         $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
80
81 include Makefile.dep
82 include clean.mk
83
84 #parser.cc: parser.y
85
86 #plex.cc: plex.l
87
88 # My rules
89 # --------
90
91 cmdlib: $(PRJDIR)/libcmd.a
92
93 $(PRJDIR)/libcmd.a: $(OBJECTS)
94         $(AR) -rcu $*.a $(OBJECTS)
95         $(RANLIB) $*.a
96
97 .cc.o:
98         $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
99
100 .y.cc:
101         rm -f $*.cc $*.h
102         $(YACC) -d $<
103         mv y.tab.c $*.cc
104         mv y.tab.h $*.h
105
106 .l.cc:
107         rm -f $*.cc
108         $(LEX) -t $< >$*.cc
109
110
111 # Remaking configuration
112 # ----------------------
113 checkconf:
114         @if [ -f $(PRJDIR)/devel ]; then\
115           $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
116         fi
117
118 # End of cmd.src/Makefile.in