# This is makefile for examples/gui_vesmir. # CC = @CC@ CP = @CP@ CUT = @CUT@ GREP = @GREP@ LN = @LN_S@ MKDIR = @MKDIR@ RM = @RM@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ top_srcdir = @top_srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ includedir = @includedir@ sysconfdir = @sysconfdir@ localstatedir = @localstatedir@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ SRC = main_app.c SRC += cmdline_app.c conf_app.c dynload_bind_app.c dynload_ret_app.c SRC += work/calc.c work/catalog.c work/galaxy.c work/planet.c work/star.c work/universe.c SRC += work/noise.c work/sphere.c SRC += work/worker_roller.c DEP = Makefile DEP += engine/*.h DEP += main_app.h DEP += declarations_app.h structures_app.h DEP += cmdline_app.h conf_app.h dynload_bind_app.h dynload_ret_app.h DEP += work/calc.h work/catalog.h work/elements.h work/galaxy.h work/planet.h work/star.h work/universe.h DEP += work/noise.h work/sphere.h DEP += work/worker_roller.h INC = @CFLAGS@ @DEFS@ LIB = @LDFLAGS@ LNK = @GNUTLS_LIBS@ @OPENSSL_LIBS@ LNK += @ALSA_LIBS@ @AO_LIBS@ @PORTAUDIO_LIBS@ @PULSEAUDIO_LIBS@ @SNDIO_LIBS@ LNK += @FLAC_LIBS@ LNK += @XRANDR_LIBS@ LNK += @FREETYPE2_LIBS@ @GL_LIBS@ @XEXT_LIBS@ @X11_LIBS@ LNK += @LIBS@ SUB = engine @BUILD_REDTOOLS@ @BUILD_USB_CLASSIC_NES_GAMEPAD@ SUI = @BUILD_REDTOOLS@ @BUILD_USB_CLASSIC_NES_GAMEPAD@ OBJ = $(SRC:.c=.@OBJEXT@) OUT = @PROG_X@ PRG = @PROG_P@ EXT = @G_FLAGS@ .SUFFIXES = .c .c.@OBJEXT@: $(CC) $(INC) -c -o $@ $< $(OUT): $(OBJ) @for i in $(SUB); do $(MAKE) -C $$i ; done ifeq ($(EXT),embedded_ano) @$(CP) `$(GREP) '^#define DSL_EMBEDDED_ANO' engine/dsl_ano.h | $(CUT) -f 2 -d '"'` embedded_ano @$(CP) `$(GREP) '^#define DSL_EMBEDDED_M2C' engine/menu_defs.h | $(CUT) -f 2 -d '"'` embedded_m2c @$(CP) `$(GREP) '^#define DSL_EMBEDDED_W2C' engine/widget_defs.h | $(CUT) -f 2 -d '"'` embedded_w2c @$(LD) -r -b binary -o engine/embedded_ano.o embedded_ano @$(LD) -r -b binary -o engine/embedded_m2c.o embedded_m2c @$(LD) -r -b binary -o engine/embedded_w2c.o embedded_w2c @$(RM) -f embedded_ano embedded_m2c embedded_w2c endif $(CC) @D_FLAGS@ $(LIB) -o $(OUT) engine/*.@OBJEXT@ $(OBJ) $(LNK) $(OBJ): $(DEP) .PHONY: clean erase reconfig compile pot locale install-locale install install-strip uninstall clean: @-$(RM) -f work/*.@OBJEXT@ @-$(RM) -f *.@OBJEXT@ $(OUT) erase: @$(MAKE) clean @for i in $(SUB); do $(MAKE) -C $$i clean ; done reconfig: @sh reconfig/config.nice-$(OUT)-`uname -s -r -m 2>/dev/null | cut -f 1 -d '(' | cut -f 1 -d '/' | tr ' ' '_'` compile: @./build/ano examples/$(PRG)/$(PRG).ano > engine/dsl_ano.h @./build/menu examples/$(PRG)/$(PRG).m2c > engine/menu_defs.h @./build/widget examples/$(PRG)/$(PRG).w2c > engine/widget_defs.h pot: @xgettext \ --copyright-holder="$$(cat engine/defines.h | \ grep '^#define APPLICATION_COPYRIGHT' | \ cut -f 2 -d '"' | cut -f 1 -d '<')" \ --package-name=$$(cat engine/defines.h | \ grep '^#define APPLICATION_EXEC' | \ cut -f 2 -d '"') \ --package-version=$$(cat engine/defines.h | \ grep '^#define APPLICATION_VERSION' | \ cut -f 2 -d '"') \ --msgid-bugs-address=$$(cat configure | \ grep '^PACKAGE_BUGREPORT=' | \ cut -f 2 -d '=' | tr -d "'" | tr -d '"') \ -d $(OUT) -o examples/$(PRG)/po/$(PRG).pot -k_ -F \ *.c \ engine/*.c \ engine/input/*/*.c \ engine/redtools/redtool.c \ work/*.c @for i in $$(cat examples/$(PRG)/po/locales.txt); do \ if [ -f "examples/$(PRG)/po/$${i}/$(PRG).po" ]; then \ msgmerge -U examples/$(PRG)/po/$${i}/$(PRG).po examples/$(PRG)/po/$(PRG).pot ; \ else \ mkdir -p examples/$(PRG)/po/$${i} ; \ msginit -l $${i} -i examples/$(PRG)/po/$(PRG).pot -o examples/$(PRG)/po/$${i}/$(PRG).po ; \ fi \ done locale: @-for i in $$(cat examples/$(PRG)/po/locales.txt); do \ mkdir -p po/$${i} ; \ msgfmt examples/$(PRG)/po/$${i}/$(PRG).po -o po/$${i}/$(OUT).mo ; \ done install-locale: @-for i in $$(cat examples/$(PRG)/po/locales.txt); do \ if [ -f "po/$${i}/$(OUT).mo" ]; then \ $(INSTALL) -d "$(DESTDIR)/$(localedir)"/$${i}/LC_MESSAGES ; \ $(INSTALL_DATA) po/$${i}/$(OUT).mo "$(DESTDIR)/$(localedir)"/$${i}/LC_MESSAGES ; \ fi \ done install: install-locale $(INSTALL) -d "$(DESTDIR)/$(bindir)" $(INSTALL) -d "$(DESTDIR)/$(sysconfdir)" $(INSTALL) -d "$(DESTDIR)/$(datadir)" $(INSTALL) -d "$(DESTDIR)/$(datadir)"/detroit/bobs $(INSTALL) -d "$(DESTDIR)/$(datadir)"/detroit/fonts $(INSTALL) -d "$(DESTDIR)/$(datadir)"/detroit/widgets $(INSTALL_DATA) etc/$(OUT).conf "$(DESTDIR)/$(sysconfdir)" $(INSTALL_DATA) etc/$(OUT).res "$(DESTDIR)/$(sysconfdir)" $(INSTALL_DATA) share/detroit/fonts/* "$(DESTDIR)/$(datadir)"/detroit/fonts $(INSTALL_DATA) share/detroit/widgets/* "$(DESTDIR)/$(datadir)"/detroit/widgets $(INSTALL_PROGRAM) -m 0755 $(OUT) "$(DESTDIR)/$(bindir)" @for i in $(SUI); do $(MAKE) -C $$i install ; done install-strip: install -strip --strip-unneeded "$(DESTDIR)/$(bindir)/$(OUT)" uninstall: @for i in $(SUI); do $(MAKE) -C $$i uninstall ; done