Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
Small makefile changes
Browse files Browse the repository at this point in the history
Make clean now also cleans the open-zwave build directory.
This will clean open-zwave as well as OZSS.
  • Loading branch information
wburgers committed Feb 4, 2015
1 parent dcbcce0 commit 13a1b0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.o
test
openzwave-server
OZW_log.txt
make_log.txt
zw*.xml
Expand Down
15 changes: 8 additions & 7 deletions Server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,26 @@ LIBS = $(wildcard ../../lib/linux/*.a) $(wildcard ../../lib/*.a) $(wildcard ../.
%.o : %.cpp
$(CXX) $(CFLAGS) $(INCLUDES) -o $@ $<

all: test
all: openzwave-server

lib:
$(MAKE) -C ../../build
$(MAKE) -C ../../build -$(MAKEFLAGS)

Socket: Socket.o
$(LD) $(CFLAGS) Socket.cpp -o Socket.o

Sunrise: sunrise.o
$(LD) -c -Wall sunrise.cpp -o Sunrise.o -lm

Core:
$(LD) $(CFLAGS) Configuration.cpp -o Core.o
Configuration:
$(LD) $(CFLAGS) Configuration.cpp -o Configuration.o

test: Main.o Socket Sunrise Core lib
$(LD) -o $@ $(LDFLAGS) $< $(LIBS) Socket.o Sunrise.o Core.o -lwebsockets -pthread -ludev
openzwave-server: Main.o Socket Sunrise Configuration lib
$(LD) -o $@ $(LDFLAGS) $< $(LIBS) Socket.o Sunrise.o Configuration.o -lwebsockets -pthread -ludev

clean:
rm -f test Main.o Socket.o Sunrise.o Core.o
rm -f openzwave-server *.o
cd ../../build/; make clean

XMLLINT := $(shell whereis -b xmllint | cut -c10-)

Expand Down

0 comments on commit 13a1b0f

Please sign in to comment.