Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (38 sloc) 1.18 KB
CC := @CC@
BINDIR := @prefix@/@bindir@
SBINDIR := @prefix@/@sbindir@
MANDIR := @prefix@/@mandir@
LIBDIR := @prefix@/@libdir@
GLIB_INC := $(shell glib-config --cflags)
GLIB_LIB := $(shell glib-config --libs)
default: all
# Include the various module definitions
include src/
# Look for include files in each of the modules (FIXME: this is a hack!)
#CFLAGS += -I src
# Include the C include Deps
#TEMP := $(foreach tmp,$(PROJ),$($(tmp)_OBJ))
#DEPS := $(TEMP:.o=.d)
#include $(DEPS)
all: $(foreach tmp,$(PROJ),$($(tmp)_BIN))
# Build files with project-specific CFLAGS
%.o: %.c
$(CC) $(CFLAGS) $(yavipind_CFLAGS) -c $< -o $@
# Calculate C include deps
%.d: %.c
scripts/ $(CFLAGS) $< > $@
# Special clean rule to let projects specify their own cleanup
clean: $(foreach tmp,$(PROJ),$(tmp)_clean)
rm -f $(DEPS)
distclean: clean
rm -f config.cache config.log config.status include/autoconf.h \
Makefile $(foreach tmp,$(PROJ),$($(tmp)_DIR)/
# Likewise for install
.PHONY: install clean
mkdir -p $(BINDIR)
mkdir -p $(MANDIR)/man8
install: pre-install $(foreach tmp,$(PROJ),$(tmp)_install)