gbdk-releases/sdcc/sim/ucsim/gui.src/Makefile
2015-01-10 16:25:09 +01:00

160 lines
3.2 KiB
Makefile

# Generated automatically from Makefile.in by configure.
#
# uCsim gui.src/Makefile
#
# (c) Drotos Daniel, Talker Bt. 1999
#
SHELL = /bin/sh
CXX = i586-mingw32msvc-g++
CPP = @CPP@
CXXCPP = i586-mingw32msvc-g++ -E
RANLIB = i586-mingw32msvc-ranlib
INSTALL = /usr/bin/install -c
PRJDIR = ..
DEFS = $(subs -DHAVE_CONFIG_H,,-DHAVE_CONFIG_H)
CPPFLAGS = -I. -I$(PRJDIR) \
-I$(PRJDIR)/sim.src -I$(PRJDIR)/cmd.src
CFLAGS = -Wall
CXXFLAGS = -ggdb -O -pipe -Wall
M_OR_MM = -MM
LIBS = -L$(PRJDIR)
curses_ok =
prefix = /sdcc
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
datadir = ${prefix}/share
includedir = ${prefix}/include
mandir = ${prefix}/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
infodir = ${prefix}/info
srcdir = .
PKGS =
CURSES_PKGS = serio.src
# Common code
OBJECTS = rec.o
SOURCES = $(patsubst %.o,%.cc,$(OBJECTS))
# uCsim only
UCSIM_OBJECTS = gui.o if.o
UCSIM_SOURCES = $(patsubst %.o,%.cc,$(UCSIM_OBJECTS))
# Tool only
TOOL_OBJECTS =
TOOL_SOURCES = $(patsubst %.o,%.cc,$(TOOL_OBJECTS))
ALL_SOURCES = $(SOURCES) $(UCSIM_SOURCES) $(TOOL_SOURCES)
# Compiling entire program or any subproject
# ------------------------------------------
all: gui.src
gui.src: checkconf gui_api
ifeq ($(curses_ok),yes)
@for pkg in $(CURSES_PKGS); do\
$(MAKE) -C $$pkg $$pkg ;\
done
endif
# @for pkg in $(PKGS); do\
# $(MAKE) -C $$pkg $$pkg ;\
# done
gui_api: ucsim_lib tool_lib
# Compiling and installing everything and runing test
# ---------------------------------------------------
install: install_gui_api
@for pkg in $(PKGS); do\
cd $$pkg && $(MAKE) install ; cd ..;\
done
install_gui_api:
# Deleting all the installed files
# --------------------------------
uninstall: uninstall_gui_api
@for pkg in $(PKGS); do\
cd $$pkg && $(MAKE) uninstall ; cd ..;\
done
uninstall_gui_api:
# Performing self-test
# --------------------
check: check_gui_api
@for pkg in $(PKGS); do\
cd $$pkg && $(MAKE) check ; cd ..;\
done
check_gui_api:
# Performing installation test
# ----------------------------
installcheck: installcheck_gui_api
@for pkg in $(PKGS); do\
cd $$pkg && $(MAKE) installcheck ; cd ..;\
done
installcheck_gui_api:
# Creating installation directories
# ---------------------------------
installdirs:
@for pkg in $(PKGS); do\
cd $$pkg && $(MAKE) installdirs ; cd ..;\
done
# Creating dependencies
# ---------------------
dep: Makefile.dep
Makefile.dep: $(ALL_SOURCES) *.h
$(CXXCPP) -MM $(CPPFLAGS) $(M_OR_MM) $(ALL_SOURCES) >Makefile.dep
include Makefile.dep
include clean.mk
# My rules
# --------
ucsim_lib: $(PRJDIR)/libguiucsim.a
$(PRJDIR)/libguiucsim.a: $(OBJECTS) $(UCSIM_OBJECTS)
$(AR) -rcu $*.a $(OBJECTS) $(UCSIM_OBJECTS)
$(RANLIB) $*.a
tool_lib: $(PRJDIR)/libguitool.a
$(PRJDIR)/libguitool.a: $(OBJECTS) $(TOOL_OBJECTS)
$(AR) -rcu $*.a $(OBJECTS) $(TOOL_OBJECTS)
$(RANLIB) $*.a
.cc.o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
# Remaking configuration
# ----------------------
checkconf:
@if [ -f $(PRJDIR)/devel ]; then\
$(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
fi
# End of gui.src/Makefile