diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/Makefile b/src/Makefile index 821295e..bec3e07 100644 --- a/src/Makefile +++ b/src/Makefile @@ -25,19 +25,12 @@ INSTALL = install INSTALLDIR = $(INSTALL) -d PKG_CONFIG ?= pkg-config -ifdef LUAPC -LUA_TARGETS := client.so -INSTALL_LUA_TARGET := install-lua -LUA_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(LUAPC)) -LUA_VERSION ?= $(shell $(PKG_CONFIG) --variable V $(LUAPC)) - -luasharedir := $(datarootdir)/lua/$(LUA_VERSION) -lualibdir := $(libdir)/lua/$(LUA_VERSION) +SUBDIRS := +ifdef LUAPC +SUBDIRS += lua endif -SUBDIRS := - CFLAGS ?= -g CFLAGS += -I../ CFLAGS += -DPINGU_VERSION=\"$(PINGU_VERSION)\" @@ -82,7 +75,7 @@ client.so_LDFLAGS = -shared ALL_OBJS= $(pingu_OBJS) $(pinguctl_OBJS) $(mtu_OBJS) $(client.so_OBJS) -all: $(TARGETS) +all: $(TARGETS) $(SUBDIRS) %.o: %.c $(CC) $(CFLAGS) $($@_CFLAGS) -c $< |