# # $Id$ # # Part of Equinox Desktop Environment (EDE). # Copyright (c) 2000-2006 EDE Authors. # # This program is licenced under terms of the # GNU General Public Licence version 2 or newer. # See COPYING for details. # Overwrite if you want that be overwriten # directories prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ datadir = @datadir@ includedir = @includedir@ libdir = @libdir@ mandir = @mandir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ VPATH = @srcdir@ EVOLUME = @EVOLUME@ #locale directory LOCALEDIR = @prefix@/share/locale # programs CXX = @CXX@ MSGFMT = @MSGFMT@ MAKEDEPEND = @MAKEDEPEND@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ RM = @RM@ -f MKINSTALLDIRS = @HOME_DIR@/mkinstalldirs # NOTE: this is a function # it is called like '$(INSTALL_LOCALE)' INSTALL_LOCALE=\ for f in $(MOFILES); do\ $(MKINSTALLDIRS) $(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES;\ $(INSTALL_DATA) $$f $(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES/$(TARGET).mo;\ done # compiler flags CXXFLAGS = -DSHAPE @CXXFLAGS@ # libraries LIBS = @LIBS@ @SILENT@ .SUFFIXES: .o .cxx .cpp .c .po .mo OBJECTS:= $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(CXXFILES:.cxx=.o) MOFILES:= $(POFILES:.po=.mo) all: $(TARGET) $(MOFILES) $(TARGET): $(OBJECTS) echo Linking $@ $(CXX) $^ -o $@ $(LIBS) %.o: %.cpp echo Compiling $<... $(CXX) $(CXXFLAGS) -c $< %.o: %.cxx echo Compiling $<... $(CXX) $(CXXFLAGS) -c $< %.o: %.c echo Compiling $<... $(CXX) $(CXXFLAGS)-c $< %.mo: %.po echo Translation $<... $(MSGFMT) $< -o $@