* configure.in: added missing mcs51 in status output
[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 LEX             = @LEX@
17 YACC            = @YACC@
18 BISON_PLUS_PLUS = @BISON_PLUS_PLUS@
19
20 top_builddir    = @top_builddir@
21 top_srcdir      = @top_srcdir@
22
23 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
24 CPPFLAGS        = @CPPFLAGS@ -I$(srcdir) -I$(top_srcdir) -I$(top_builddir) \
25                   -I$(top_srcdir)/sim.src -I$(top_srcdir)/gui.src
26 CFLAGS          = @CFLAGS@ -Wall
27 CXXFLAGS        = @CXXFLAGS@ -Wall
28 M_OR_MM         = @M_OR_MM@
29 WINSOCK_AVAIL   = @WINSOCK_AVAIL@
30
31 prefix          = @prefix@
32 exec_prefix     = @exec_prefix@
33 bindir          = @bindir@
34 libdir          = @libdir@
35 datadir         = @datadir@
36 datarootdir     = @datarootdir@
37 includedir      = @includedir@
38 mandir          = @mandir@
39 man1dir         = $(mandir)/man1
40 man2dir         = $(mandir)/man2
41 infodir         = @infodir@
42 srcdir          = @srcdir@
43 VPATH           = @srcdir@
44
45 OBJECTS         = cmdset.o command.o cmdutil.o syntax.o \
46                   get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
47                   cmduc.o cmdstat.o cmdmem.o \
48                   cmdpars.o cmdlex.o newcmd.o
49
50 ifeq ($(WINSOCK_AVAIL), 1)
51 OBJECTS += newcmdwin32.o
52 else
53 OBJECTS += newcmdposix.o
54 endif
55
56 DEVEL           = $(shell ( bash -c "test -e $(top_builddir)/devel && echo yes" ))
57
58 # Compiling entire program or any subproject
59 # ------------------------------------------
60 all: checkconf cmdlib
61
62 cmd.src: all
63
64
65 # Compiling and installing everything and runing test
66 # ---------------------------------------------------
67 install: all installdirs
68
69
70 # Deleting all the installed files
71 # --------------------------------
72 uninstall:
73
74
75 # Performing self-test
76 # --------------------
77 check:
78
79 test:
80
81
82 # Performing installation test
83 # ----------------------------
84 installcheck:
85
86
87 # Creating installation directories
88 # ---------------------------------
89 installdirs:
90
91
92 # Creating dependencies
93 # ---------------------
94 dep: Makefile.dep
95
96 Makefile.dep: $(srcdir)/*.cc $(srcdir)/*.h
97         $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(addprefix $(srcdir)/, $(OBJECTS:.o=.cc)) >Makefile.dep
98
99 include Makefile.dep
100 include $(srcdir)/clean.mk
101
102 cmdpars.cc: cmdpars.y
103
104 ifeq ($(DEVEL),yes)
105   cmdlex.cc: cmdlex.l cmdpars.h
106 endif
107
108 # My rules
109 # --------
110
111 cmdlib: $(top_builddir)/libcmd.a
112
113 $(top_builddir)/libcmd.a: $(OBJECTS)
114         ar -rcu $*.a $(OBJECTS)
115         $(RANLIB) $*.a
116
117 .cc.o:
118         $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
119
120 #.y.cc:
121 #       rm -f $*.cc $*.h
122 #       $(YACC) -d $<
123 #       mv y.tab.c $*.cc
124 #       mv y.tab.h $*.h
125
126 ifeq ($(DEVEL),yes)
127 .y.cc:
128         rm -f $*.cc $*.h
129         $(BISON_PLUS_PLUS) -d -o $*.cc $<
130
131 .l.cc:
132         rm -f $*.cc
133         $(LEX) --c++ -o $*.cc $<
134 endif
135
136
137 # Remaking configuration
138 # ----------------------
139 checkconf:
140         @if [ -f $(top_builddir)/devel ]; then\
141           $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
142         fi
143
144 # End of cmd.src/Makefile.in