Merge pull request #616 from wang-xuefei/dev
remake clean or remake install failed.
This commit is contained in:
+1
-1
@@ -16,5 +16,5 @@ install:
|
|||||||
cp ndpiReader /usr/local/bin
|
cp ndpiReader /usr/local/bin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm *.o ndpiReader
|
/bin/rm -f *.o ndpiReader
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -38,7 +38,7 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
|
|||||||
|
|
||||||
$(NDPI_LIB_SHARED): $(OBJECTS)
|
$(NDPI_LIB_SHARED): $(OBJECTS)
|
||||||
$(CC) -shared -fPIC -o $@ $(OBJECTS)
|
$(CC) -shared -fPIC -o $@ $(OBJECTS)
|
||||||
ln -Fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
|
ln -Ffs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
|
||||||
|
|
||||||
%.o: %.c $(HEADERS) Makefile
|
%.o: %.c $(HEADERS) Makefile
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
@@ -49,6 +49,6 @@ clean:
|
|||||||
install: $(NDPI_LIBS)
|
install: $(NDPI_LIBS)
|
||||||
mkdir -p $(DESTDIR)$(libdir)
|
mkdir -p $(DESTDIR)$(libdir)
|
||||||
cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
|
cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
|
||||||
ln -Fs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
|
ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
|
||||||
mkdir -p $(DESTDIR)$(includedir)
|
mkdir -p $(DESTDIR)$(includedir)
|
||||||
cp ../include/*.h $(DESTDIR)$(includedir)
|
cp ../include/*.h $(DESTDIR)$(includedir)
|
||||||
|
|||||||
Reference in New Issue
Block a user