Skip to content

Commit

Permalink
Removed helper lib from unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Sep 11, 2020
1 parent b45c9f5 commit c06eb12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions tests/helperlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ CONNECT_TEST_OBJECTS = connect_test.o \

### Targets: ###

all: unittest connect_test
all: unittest
#all: unittest connect_test

unittest.o: unittest.cpp unittest.h
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c unittest.cpp -o $@ $(EXTRALIBS)
Expand Down Expand Up @@ -157,8 +158,8 @@ fastpbkdf2.o: ../../src/common/fastpbkdf2.c ../../src/common/fastpbkdf2.h
vscpmd5.o: ../../src/common/vscpmd5.c ../../src/common/vscpmd5.h
$(CC) $(CFLAGS) -c ../../src/common/vscpmd5.c -o $@

connect_test: $(CONNECT_TEST_OBJECTS)
$(CXX) -o $@ $(CONNECT_TEST_OBJECTS) $(LDFLAGS) $(EXTRALIBS)
#connect_test: $(CONNECT_TEST_OBJECTS)
# $(CXX) -o $@ $(CONNECT_TEST_OBJECTS) $(LDFLAGS) $(EXTRALIBS)

unittest: $(UNITTEST_OBJECTS)
$(CXX) -o $@ $(UNITTEST_OBJECTS) $(LDFLAGS) $(EXTRALIBS)
Expand Down
8 changes: 4 additions & 4 deletions tests/helperlib/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CPPFLAGS = @CPPFLAGS@ ${WARNINGS} -fno-var-tracking-assignments -I@top_srcdir@ \


LDFLAGS = @LDFLAGS@
EXTRALIBS = @EXTRALIBS@ -L../../googletest/build/lib -lgtest -lgtest_main -lvscphelper
EXTRALIBS = @EXTRALIBS@ -L../../googletest/build/lib -lgtest -lgtest_main
DESTDIR=@DESTDIR@

prefix = @prefix@
Expand Down Expand Up @@ -105,16 +105,16 @@ CONNECT_TEST_OBJECTS = connect_test.o \
vscpbase64.o \
vscpdatetime.o

### Targets: ###
### Targets: ### all: unittest connect_test

all: unittest
#all: unittest connect_test


unittest.o: unittest.cpp unittest.h
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c unittest.cpp -o $@ $(EXTRALIBS)

connect_test.o: connect_test.cpp connect_test.h
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c connect_test.cpp -o $@ $(EXTRALIBS)
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c connect_test.cpp -o $@ $(EXTRALIBS) -lvscphelper

vscphelper.o: ../../src/vscp/common/vscphelper.cpp ../../src/vscp/common/vscphelper.h
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c ../../src/vscp/common/vscphelper.cpp -o $@
Expand Down

0 comments on commit c06eb12

Please sign in to comment.