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 = driver.c DEP = Makefile DEP += driver.h DEP += ../input_driver.h DEP += ../../config.h ../../macros.h INC = @CFLAGS@ @DEFS@ -fPIC INC += -DBINDIR=\"$(bindir)\" -DETCDIR=\"$(sysconfdir)\" -DINCDIR=\"$(includedir)\" -DLIBDIR=\"$(libdir)\" -DSHRDIR=\"$(datadir)\" INC += -DLOCALEDIR=\"$(localedir)\" LIB = @LDFLAGS@ LNK = @LIBS@ OBJ = $(SRC:.c=.@OBJEXT@) OUT = input_usb_classic_nes_gamepad.so .SUFFIXES = .c .c.@OBJEXT@: @echo Compiling input driver/$< ; $(CC) $(INC) -o $@ $< $(OUT): $(OBJ) $(CC) $(LIB) -shared -o $(OUT).$(API).$(VER) $(OBJ) $(LNK) $(OBJ): $(DEP) .PHONY: clean install install-strip uninstall clean: @-$(RM) -f *.@OBJEXT@ $(OUT).$(API).$(VER) install: $(INSTALL) -d "$(DESTDIR)/$(libdir)/detroit/drivers" $(INSTALL) -d "$(DESTDIR)/$(includedir)/detroit" $(INSTALL_DATA) ../input_driver.h "$(DESTDIR)/$(includedir)/detroit" $(INSTALL_PROGRAM) -m 0755 $(OUT).$(API).$(VER) "$(DESTDIR)/$(libdir)/detroit/drivers" (cd "$(DESTDIR)/$(libdir)/detroit/drivers" && $(RM) -f $(OUT) && $(LN) $(OUT).$(API).$(VER) $(OUT)) install-strip: install -strip --strip-unneeded "$(DESTDIR)/$(libdir)/detroit/drivers/$(OUT).$(API).$(VER)" uninstall: (cd "$(DESTDIR)/$(includedir)/detroit" && $(RM) -f input_driver.h) (cd "$(DESTDIR)/$(libdir)/detroit/drivers" && $(RM) -f $(OUT).$(API).$(VER) $(OUT)) if [ "`ls -A \"$(DESTDIR)/$(includedir)/detroit\"`" = "" ]; then \ $(RM) -rf "$(DESTDIR)/$(includedir)/detroit"; \ fi if [ "`ls -A \"$(DESTDIR)/$(libdir)/detroit/drivers\"`" = "" ]; then \ $(RM) -rf "$(DESTDIR)/$(libdir)/detroit/drivers"; \ fi