Fix make install without some head file
Remove redundant makefile
This commit is contained in:
parent
625ff84c87
commit
e5bf842cdf
|
@ -7,5 +7,5 @@ target_link_libraries(kyconf-test-struct kyconf kylog pthread)
|
|||
install(TARGETS kyconf
|
||||
DESTINATION ${CMAKE_INSTALL_RPATH})
|
||||
|
||||
# install(FILES libkyconf.h
|
||||
# DESTINATION include/kysdk/kysdk-base)
|
||||
install(FILES libkyconf.h
|
||||
DESTINATION include/kysdk/kysdk-base)
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
OBJ=gsettingsparse.o jsonparse.o structparse.o xmlparse.o
|
||||
|
||||
CFLAGS=-g -O0 -Wall -fPIC -I../ -I../utils/ -I../config/
|
||||
CLIBS=-lpthread
|
||||
CC:=$(shell bash -c 'type $(CC) &> /dev/null && echo $(CC) || echo gcc')
|
||||
TARGET=libkyconf.so
|
||||
LIBINST=libkyconf.so.1.0.0
|
||||
LIBHEAD=kyconf.h
|
||||
LIBINSTHEADER=/usr/include/kysdk/base/
|
||||
|
||||
all:$(OBJ)
|
||||
$(CC) -o $(LIBINST) configure.c $(OBJ) $(CFLAGS) $(CLIBS) -shared
|
||||
mkdir -p lib/
|
||||
mv -f $(LIBINST) lib/
|
||||
cd lib/ && ln -sf $(LIBINST) $(TARGET) && cd ..
|
||||
-rm *.o &> /dev/null
|
||||
|
||||
clean:
|
||||
-rm *.o &> /dev/null
|
||||
-rm ../lib/$(TARGET) &> /dev/null
|
|
@ -1,20 +0,0 @@
|
|||
OBJ=core.o format.o klog_mqueue.o kylog.o write.o writeFile.o
|
||||
|
||||
CFLAGS=-g -O0 -Wall -fPIC -I../ -I../utils/ -I../config/
|
||||
# CLIBS=-lpthread -lsystemd
|
||||
CC:=$(shell bash -c 'type $(CC) &> /dev/null && echo $(CC) || echo gcc')
|
||||
TARGET=libkylog.so
|
||||
LIBINST=libkylog.so.1.0.0
|
||||
LIBHEAD=kylog.h
|
||||
LIBINSTHEADER=/usr/include/kylog/
|
||||
|
||||
all:$(OBJ)
|
||||
$(CC) -o $(LIBINST) $(OBJ) $(CFLAGS) $(CLIBS) -shared
|
||||
mkdir -p lib/
|
||||
mv -f $(LIBINST) lib/
|
||||
cd lib/ && ln -sf $(LIBINST) $(TARGET) && cd ..
|
||||
-rm *.o &> /dev/null
|
||||
|
||||
clean:
|
||||
-rm *.o &> /dev/null
|
||||
-rm ../lib/$(TARGET) &> /dev/null
|
|
@ -8,5 +8,5 @@ target_link_libraries(test-kytimer kytimer)
|
|||
install(TARGETS kytimer
|
||||
DESTINATION ${CMAKE_INSTALL_RPATH})
|
||||
|
||||
# install(FILES libkytimer.h
|
||||
# DESTINATION include/kysdk/kysdk-base)
|
||||
install(FILES libkytimer.h
|
||||
DESTINATION include/kysdk/kysdk-base)
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
CLIBS=-lpthread -lrt
|
||||
CFLAGS=-g -O0 -Wall -fPIC -shared
|
||||
|
||||
CC=cc
|
||||
TARGET=libkytimer.so
|
||||
LIBINSTALLNAME=libkytimer.so.1.0.0
|
||||
LIBINSTALLDIR=/usr/lib/
|
||||
HEADERINSTALLDIR=/usr/include/
|
||||
HEADERS=kytimer.h
|
||||
|
||||
.PHONY:all
|
||||
.PHONY:clean
|
||||
.PHONY:lib
|
||||
|
||||
all:lib
|
||||
|
||||
lib:
|
||||
$(CC) $(CFLAGS) $(CLIBS) -o $(TARGET) libkytimer.c
|
||||
mkdir -p lib/
|
||||
mv $(TARGET) lib/$(LIBINSTALLNAME)
|
||||
|
||||
clean:
|
||||
-rm ../lib/$(LIBINSTALLNAME)
|
||||
|
||||
target_install:TARGET
|
||||
cp $(LIBINSTALLNAME) $(LIBINSTALLDIR)
|
|
@ -4,8 +4,8 @@ set_target_properties(kyutils PROPERTIES VERSION 2.0.0 SOVERSION 1)
|
|||
include_directories(.)
|
||||
install(TARGETS kyutils
|
||||
DESTINATION ${CMAKE_INSTALL_RPATH})
|
||||
# install(FILES sdkmarcos.h kerr.h cstring-extension.h
|
||||
# DESTINATION include/kysdk/kysdk-base)
|
||||
install(FILES sdkmarcos.h kerr.h cstring-extension.h kyutils.h
|
||||
DESTINATION include/kysdk/kysdk-base)
|
||||
add_executable(test-utils sample/kyutils_sample.c)
|
||||
target_link_libraries(test-utils kyutils)
|
||||
|
||||
|
|
Loading…
Reference in New Issue