mirror of
https://github.com/nmap/nmap.git
synced 2026-02-02 19:49:11 +00:00
Remove bit from nselib-bin/Makefile.in. I thought it had been done already.
This makes the rule to generate a module general so all you should have to do in the common case is add <module>.so as a dependency of the "all" target.
This commit is contained in:
@@ -15,15 +15,15 @@ LIBS = @LIBS@
|
||||
LIBTOOL= ./libtool
|
||||
LTFLAGS = --tag=CC --silent
|
||||
|
||||
all: bit.so
|
||||
all:
|
||||
|
||||
bit.so: bit.c @LIBTOOL_DEPS@
|
||||
$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c bit.c
|
||||
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -avoid-version -module -rpath $(nselib_bindir) $(LDFLAGS) -o bit.la bit.lo $(LIBS)
|
||||
mv .libs/bit.so bit.so
|
||||
%.so: %.c @LIBTOOL_DEPS@
|
||||
$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
|
||||
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -avoid-version -module -rpath $(nselib_bindir) $(LDFLAGS) -o $*.la $*.lo $(LIBS)
|
||||
mv .libs/$*.so $*.so
|
||||
|
||||
clean:
|
||||
rm -f bit.so *.la *.lo
|
||||
rm -f *.so *.la *.lo
|
||||
rm -rf .libs
|
||||
|
||||
distclean: clean
|
||||
|
||||
Reference in New Issue
Block a user