fc620819b6
* Added needed boilerplate to configure.ac * Wrap original Makefile's with automake: - Renamed all original Makefile -> Makefile.legacy - Force automake generated Makefile to call Makefile.legacy: Currently handle: all, install, clean, distclean, dist, docs, config - Note: our temporary 'dist' target conflicts with automake 'dist' target. * Temporarily added extra dist files into build_tools/make_dist (until we move "make dist" functionality into automake) * For now, we don't try to compile ppp/ as it wasn't compiled from the top-level Makefile before. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
30 lines
553 B
Makefile
30 lines
553 B
Makefile
#COPTS = -O2 -g
|
|
|
|
-include ../makeopts
|
|
|
|
CFLAGS += $(COPTS) -fPIC $(DAHDI_INCLUDE)
|
|
LDFLAGS += -shared
|
|
|
|
INCLUDE_DIR = $(includedir)/pppd
|
|
|
|
LIBDIR = $(libdir)/pppd/$(PPPD_VERSION)
|
|
|
|
PLUGINS := dahdi.so
|
|
|
|
all: $(PLUGINS)
|
|
|
|
%.so: %.c
|
|
ifeq (,$(PPPD_VERSION))
|
|
@echo "pppd version not found (in patchlevel.h)."
|
|
@echo "Install ppp source/headers and/or ./configure --with-ppp=PATH."
|
|
exit 1
|
|
endif
|
|
$(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS)
|
|
|
|
install: $(PLUGINS)
|
|
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|
|
$(INSTALL) -m 0644 $? $(DESTDIR)$(LIBDIR)
|
|
|
|
clean:
|
|
rm -f *.o *.so *.a
|