TOPDIR = .. SUBDIRS = INCLUDE_DIRS = -I$(TOPDIR)/include/wolf -I. BINS = THREADING_OBJS = \ threads/mutex.o \ threads/threads.o PORT_OBJS = \ port/string.o \ port/unistd.o \ port/stdio.o \ port/stdlib.o \ port/time.o \ port/gettext.o \ port/netdb.o LOG_OBJS = \ log/log.o DAEMON_OBJS = \ daemon/signals.o \ daemon/pidfile.o \ daemon/daemon.o SERVICE_OBJS = \ service/service.o NETWORK_OBJS = \ network/network_unix.o LIBRARY_OBJS = \ library/loader.o OBJS = \ errors.o \ $(THREADING_OBJS) \ $(PORT_OBJS) \ $(LOG_OBJS) \ $(DAEMON_OBJS) \ $(NETWORK_OBJS) \ $(LIBRARY_OBJS) CATALOG_NAME = libwolf GETTEXT_LANGUAGES = de GETTEXT_FILES = $(OBJS:.o=.c) $(SERVICE_OBJS:.o=.c) GETTEXT_TRIGGERS = _ gettext_noop gettext -include $(TOPDIR)/makefiles/gmake/sub.mk local_all: libwolf.a # snprintf has some quirks, mainly -Wfloat-equal doesn't allow the # definition of ISNAN, ISINF, the C99 versions use math.h, ieee.h # libmath and more, which is maybe not really acceptable for a core # port (on the other hand so isn't NLS support!) port/stdio.o : port/stdio.c $(TOPDIR)/include/wolf/port/stdio.h port/snprintf.h port/snprintf.c $(CC) $(STD99_COMPILE_FLAGS) -c -o $@ $(INCLUDE_DIRS) $(PLATFORM_COMPILE_FLAGS) $< libwolf.a: $(OBJS) $(AR) cr $@ $? local_clean: -@rm -f port/*.bak -@rm -f port/*~ -@rm -f port/*.d -@rm -f log/*.bak -@rm -f log/*~ -@rm -f log/*.d -@rm -f daemon/*.bak -@rm -f daemon/*~ -@rm -f daemon/*.d -@rm -f threads/*.bak -@rm -f threads/*~ -@rm -f threads/*.d -@rm -f libwolf.a local_distclean: local_install: $(INSTALL) -d -m 755 $(libdir)/wolf $(INSTALL) -m 644 libwolf.a $(libdir)/wolf