2 # uCsim gui.src/Makefile
4 # (c) Drotos Daniel, Talker Bt. 1999
16 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
17 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR)
18 CFLAGS = @CFLAGS@ -Wall
19 CXXFLAGS = @CXXFLAGS@ -Wall
22 LIBS = @LIBS@ @CURSES_LIBS@ -L$(PRJDIR)
24 curses_ok = @curses_ok@
27 exec_prefix = @exec_prefix@
31 includedir = @includedir@
33 man1dir = $(mandir)/man1
34 man2dir = $(mandir)/man2
39 # serio.src portmon.src
42 view.o frame.o bg.o label.o \
43 group.o win.o desk.o app.o
46 # Compiling entire program or any subproject
47 # ------------------------------------------
52 ifeq ($(curses_ok),yes)
53 gui.src: checkconf guilib
55 gui.src: checkconf guilib
57 @for pkg in $(PKGS); do\
58 $(MAKE) -C $$pkg $$pkg ;\
62 $(CXX) $(LDFLAGS) $(LIBS) a.o -o $@
65 # Compiling and installing everything and runing test
66 # ---------------------------------------------------
68 @for pkg in $(PKGS); do\
69 cd $$pkg && $(MAKE) install ; cd ..;\
73 # Deleting all the installed files
74 # --------------------------------
76 @for pkg in $(PKGS); do\
77 cd $$pkg && $(MAKE) uninstall ; cd ..;\
81 # Performing self-test
82 # --------------------
84 @for pkg in $(PKGS); do\
85 cd $$pkg && $(MAKE) check ; cd ..;\
89 # Performing installation test
90 # ----------------------------
92 @for pkg in $(PKGS); do\
93 cd $$pkg && $(MAKE) installcheck ; cd ..;\
97 # Creating installation directories
98 # ---------------------------------
100 @for pkg in $(PKGS); do\
101 cd $$pkg && $(MAKE) installdirs ; cd ..;\
105 # Creating dependencies
106 # ---------------------
109 Makefile.dep: *.cc *.h
110 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
121 ifeq ($(curses_ok),yes)
127 libgui.a: $(LOBJECTS)
128 ar -rcu $*.a $(LOBJECTS)
132 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
135 # Remaking configuration
136 # ----------------------
138 @if [ -f $(PRJDIR)/devel ]; then\
139 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
142 # End of gui.src/Makefile