Skip to content

Commit

Permalink
common .a lib build dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
laoshanxi committed Nov 1, 2019
1 parent f2bfef5 commit cf5de36
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
8 changes: 3 additions & 5 deletions ApplicationManager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ OEXT = o
# https://blog.csdn.net/humadivinity/article/details/78890754
# boost_thread is not needed, linked here is used to packed for cpprest
INCLUDES = -I/usr/local/ace/include/ -I/usr/local/include
DEP_LIBS = -L/usr/local/ace/lib/ -L/usr/local/lib -L/usr/local/lib64 -lpthread -lcrypto -lssl -lACE -lcpprest -lboost_thread -lboost_system -lboost_regex -Wl,-Bstatic -llog4cpp -ljsoncpp -Wl,-Bdynamic
DEP_LIBS = -L/usr/local/ace/lib/ -L/usr/local/lib -L/usr/local/lib64 -lpthread -lcrypto -lssl -lACE -lcpprest -lboost_thread -lboost_system -lboost_regex -Wl,-Bstatic -llog4cpp -ljsoncpp -Wl,-Bdynamic \
-L../common -lcommon


all : format $(TARGET)
Expand All @@ -27,10 +28,7 @@ SRCS = \
ResourceLimitation.cpp \
ResourceCollection.cpp \
LinuxCgroup.cpp \
TimerHandler.cpp \
../common/Utility.cpp \
../common/HttpRequest.cpp \
../common/TimeZoneHelper.cpp
TimerHandler.cpp


OBJS = $(SRCS:.cpp=.$(OEXT))
Expand Down
6 changes: 3 additions & 3 deletions CommandLine/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ CXXFLAGS = -std=c++11 -ggdb3 -Wall -O2
OEXT = o

INCLUDES = -I/usr/local/include -I/usr/local/ace/include/
DEP_LIBS = -L/usr/local/ace/lib/ -L/usr/local/lib -L/usr/local/lib64 -lpthread -lssl -lcrypto -lcpprest -lboost_system -lboost_program_options -lACE -Wl,-Bstatic -llog4cpp -ljsoncpp -Wl,-Bdynamic
DEP_LIBS = -L/usr/local/ace/lib/ -L/usr/local/lib -L/usr/local/lib64 -lpthread -lssl -lcrypto -lcpprest -lboost_system -lboost_program_options -lACE -Wl,-Bstatic -llog4cpp -ljsoncpp -Wl,-Bdynamic \
-L../common -lcommon

all : format $(TARGET)

## source and object files
SRCS = main.cpp \
ArgumentParser.cpp \
../common/Utility.cpp
ArgumentParser.cpp

OBJS = $(SRCS:.cpp=.$(OEXT))

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Extra Features | Application can define avialable time range in a day <br> Appli
**CentOS**:
```
# centos
yum install -y https://github.com/laoshanxi/app-manager/releases/download/v1.4/appmanager-1.4.5-1.x86_64.rpm
yum install -y appmanager-1.4.6-1.x86_64.rpm
# ubuntu
apt install -y https://github.com/laoshanxi/app-manager/releases/download/v1.4/appmanager_1.4.5_amd64.deb
apt install -y appmanager_1.4.6_amd64.deb
# after installation, service will be started automaticlly, check status by bellow command:
$ appc view
id name user status return pid memory start_time command_line
Expand Down
2 changes: 1 addition & 1 deletion common/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include ../make.def
TARGET = common.a
TARGET = libcommon.a
CXX = g++
CXXFLAGS = -std=c++11 -ggdb3 -Wall -O2
OEXT = o
Expand Down

0 comments on commit cf5de36

Please sign in to comment.