Merge pull request #616 from wang-xuefei/dev

remake clean or remake install failed.
This commit is contained in:
Luca Deri
2018-10-09 17:45:23 +03:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -16,5 +16,5 @@ install:
cp ndpiReader /usr/local/bin
clean:
/bin/rm *.o ndpiReader
/bin/rm -f *.o ndpiReader
+2 -2
View File
@@ -38,7 +38,7 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
$(NDPI_LIB_SHARED): $(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
$(CC) $(CFLAGS) -c $< -o $@
@@ -49,6 +49,6 @@ clean:
install: $(NDPI_LIBS)
mkdir -p $(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)
cp ../include/*.h $(DESTDIR)$(includedir)