New version: 0.2.37 it fixes socklen_t, third param of accept(), and do not compile...
[fw/sdcc] / sim / ucsim / gui.src / Makefile.in
1 #
2 # uCsim gui.src/Makefile
3 #
4 # (c) Drotos Daniel, Talker Bt. 1999
5 #
6
7 SHELL           = /bin/sh
8 CXX             = @CXX@
9 CPP             = @CPP@
10 CXXCPP          = @CXXCPP@
11 RANLIB          = @RANLIB@
12 INSTALL         = @INSTALL@
13
14 PRJDIR          = ..
15
16 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
17 CPPFLAGS        = @CPPFLAGS@ -I. -I$(PRJDIR)
18 CFLAGS          = @CFLAGS@ -Wall
19 CXXFLAGS        = @CXXFLAGS@ -Wall
20 M_OR_MM         = @M_OR_MM@
21
22 LIBS            = @LIBS@ @CURSES_LIBS@ -L$(PRJDIR)
23
24 curses_ok       = @curses_ok@
25
26 prefix          = @prefix@
27 exec_prefix     = @exec_prefix@
28 bindir          = @bindir@
29 libdir          = @libdir@
30 datadir         = @datadir@
31 includedir      = @includedir@
32 mandir          = @mandir@
33 man1dir         = $(mandir)/man1
34 man2dir         = $(mandir)/man2
35 infodir         = @infodir@
36 srcdir          = @srcdir@
37
38 PKGS            =
39 # serio.src portmon.src
40
41 LOBJECTS        = event.o \
42                   view.o frame.o bg.o label.o \
43                   group.o win.o desk.o app.o
44
45
46 # Compiling entire program or any subproject
47 # ------------------------------------------
48 all: gui.src
49
50 libs: guilib
51
52 ifeq ($(curses_ok),yes)
53 gui.src: checkconf guilib
54 else
55 gui.src: checkconf guilib
56 endif
57         @for pkg in $(PKGS); do\
58           $(MAKE) -C $$pkg $$pkg ;\
59         done
60
61 a: a.o
62         $(CXX) $(LDFLAGS) $(LIBS) a.o -o $@
63
64
65 # Compiling and installing everything and runing test
66 # ---------------------------------------------------
67 install:
68         @for pkg in $(PKGS); do\
69           cd $$pkg && $(MAKE) install ; cd ..;\
70         done
71
72
73 # Deleting all the installed files
74 # --------------------------------
75 uninstall:
76         @for pkg in $(PKGS); do\
77           cd $$pkg && $(MAKE) uninstall ; cd ..;\
78         done
79
80
81 # Performing self-test
82 # --------------------
83 check:
84         @for pkg in $(PKGS); do\
85           cd $$pkg && $(MAKE) check ; cd ..;\
86         done
87
88
89 # Performing installation test
90 # ----------------------------
91 installcheck:
92         @for pkg in $(PKGS); do\
93           cd $$pkg && $(MAKE) installcheck ; cd ..;\
94         done
95
96
97 # Creating installation directories
98 # ---------------------------------
99 installdirs:
100         @for pkg in $(PKGS); do\
101           cd $$pkg && $(MAKE) installdirs ; cd ..;\
102         done
103
104
105 # Creating dependencies
106 # ---------------------
107 dep: Makefile.dep
108
109 Makefile.dep: *.cc *.h
110         $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
111
112 include Makefile.dep
113 include clean.mk
114
115 #parser.cc: parser.y
116
117 #plex.cc: plex.l
118
119 # My rules
120 # --------
121 ifeq ($(curses_ok),yes)
122 guilib: libgui.a
123 else
124 guilib:
125 endif
126
127 libgui.a: $(LOBJECTS)
128         ar -rcu $*.a $(LOBJECTS)
129         $(RANLIB) $*.a
130
131 .cc.o:
132         $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
133
134
135 # Remaking configuration
136 # ----------------------
137 checkconf:
138         @if [ -f $(PRJDIR)/devel ]; then\
139           $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
140         fi
141
142 # End of gui.src/Makefile