CC = @CC@ CP = @CP@ CUT = @CUT@ GREP = @GREP@ LN = @LN_S@ MKDIR = @MKDIR@ RM = @RM@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ top_srcdir = @top_srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ includedir = @includedir@ sysconfdir = @sysconfdir@ localstatedir = @localstatedir@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ API = 1 VER = 0 SRC = redtool.c DEP = Makefile DEP += ../config.h DEP += redtool.h redtools.h INC = @F_FLAGS@ @DEFS@ -fPIC INC += @X11_CFLAGS@ INC += -DBINDIR=\"$(bindir)\" -DETCDIR=\"$(sysconfdir)\" -DINCDIR=\"$(includedir)\" -DLIBDIR=\"$(libdir)\" -DSHRDIR=\"$(datadir)\" INC += -DLOCALEDIR=\"$(localedir)\" LIB = @LDFLAGS@ LNK = @X11_LIBS@ LNK += @F_LIBS@ @LIBS@ OBJ = $(SRC:.c=.@OBJEXT@) OUT = libredtools.so .SUFFIXES = .c .c.@OBJEXT@: @echo Compiling redtools/$< ; $(CC) $(INC) -o $@ $< $(OUT): $(OBJ) $(CC) $(LIB) -shared -o $(OUT).$(API).$(VER) $(OBJ) $(LNK) $(OBJ): $(DEP) .PHONY: example clean install install-strip uninstall example: $(CC) $(INC) example.c $(CC) -Wl,-rpath="$(libdir)" $(LIB) -L"$(libdir)" -lredtools $(LNK) -o example example.@OBJEXT@ clean: @-$(RM) -f *.@OBJEXT@ $(OUT).$(API).$(VER) example install: $(INSTALL) -d "$(DESTDIR)/$(libdir)" $(INSTALL) -d "$(DESTDIR)/$(includedir)/detroit" $(INSTALL_DATA) redtools.h "$(DESTDIR)/$(includedir)/detroit" $(INSTALL_PROGRAM) -m 0755 $(OUT).$(API).$(VER) "$(DESTDIR)/$(libdir)" (cd "$(DESTDIR)/$(libdir)" && $(RM) -f $(OUT) && $(LN) $(OUT).$(API).$(VER) $(OUT)) install-strip: install -strip --strip-unneeded "$(DESTDIR)/$(libdir)/$(OUT).$(API).$(VER)" uninstall: (cd "$(DESTDIR)/$(includedir)/detroit" && $(RM) -f redtools.h) (cd "$(DESTDIR)/$(libdir)" && $(RM) -f $(OUT).$(API).$(VER) $(OUT)) if [ "`ls -A \"$(DESTDIR)/$(includedir)/detroit\"`" = "" ]; then \ $(RM) -rf "$(DESTDIR)/$(includedir)/detroit"; \ fi if [ "`ls -A \"$(DESTDIR)/$(libdir)\"`" = "" ]; then \ $(RM) -rf "$(DESTDIR)/$(libdir)"; \ fi