configure/tests/plugin/Makefile.Darwin

40 lines
770 B
Makefile

TARGETS = test.dylib
PREFIX = /usr/local
DESTDIR =
LIBDIR = $(PREFIX)/lib
AR = ar
RANLIB = ranlib
CCSHARED= $(CC) -dynamiclib
RM = rm -f
LN = ln -f
MKDIR = mkdir -m 0755 -p
INSTALL = install
all: $(TARGETS)
test_OBJS = test.o
test_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
test_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
test.dylib: $(test_OBJS)
$(CCSHARED) -o test.dylib $(test_OBJS) $(test_LDFLAGS)
test.o: test.c
$(CC) $(test_CFLAGS) -c test.c
clean:
$(RM) -- $(test_OBJS)
distclean: clean
$(RM) -- $(TARGETS)
install: $(TARGETS)
$(MKDIR) $(DESTDIR)$(LIBDIR)/configure
$(INSTALL) -m 0755 test.dylib $(DESTDIR)$(LIBDIR)/configure/test.dylib
uninstall:
$(RM) -- $(DESTDIR)$(LIBDIR)/configure/test.dylib
.PHONY: all clean distclean install uninstall