Makefile : Added new files.

This commit is contained in:
kpl 2020-02-12 13:44:28 -05:00
parent 107a6b7756
commit ef70cd9420

View File

@ -1,6 +1,6 @@
HDR = cwCommon.h cwCommonImpl.h cwMem.h cwLog.h HDR = cwCommon.h cwCommonImpl.h cwMem.h cwLog.h cwUtility.h
SRC = main.cpp cwCommonImpl.cpp cwMem.cpp cwLog.cpp SRC = cwCommonImpl.cpp cwMem.cpp cwLog.cpp cwUtility.cpp
HDR += cwFileSys.h cwText.h cwFile.h cwTime.h cwLex.h cwNumericConvert.h HDR += cwFileSys.h cwText.h cwFile.h cwTime.h cwLex.h cwNumericConvert.h
SRC += cwFileSys.cpp cwText.cpp cwFile.cpp cwTime.cpp cwLex.cpp SRC += cwFileSys.cpp cwText.cpp cwFile.cpp cwTime.cpp cwLex.cpp
@ -20,8 +20,11 @@ SRC += cwMidi.cpp cwMidiPort.cpp cwMidiAlsa.cpp
HDR += cwAudioBuf.h cwAudioDevice.h cwAudioDeviceAlsa.h HDR += cwAudioBuf.h cwAudioDevice.h cwAudioDeviceAlsa.h
SRC += cwAudioBuf.cpp cwAudioDevice.cpp cwAudioDeviceAlsa.cpp cwAudioDeviceTest.cpp SRC += cwAudioBuf.cpp cwAudioDevice.cpp cwAudioDeviceAlsa.cpp cwAudioDeviceTest.cpp
HDR += cwTcpSocket.h cwTcpSocketSrv.h cwTcpSocketTest.h cwMdns.h HDR += cwTcpSocket.h cwTcpSocketSrv.h cwTcpSocketTest.h
SRC += cwTcpSocket.cpp cwTcpSocketSrv.cpp cwTcpSocketTest.cpp cwMdns.cpp SRC += cwTcpSocket.cpp cwTcpSocketSrv.cpp cwTcpSocketTest.cpp
HDR += cwMdns.h cwEuCon.h cwDnsSd.h dns_sd/dns_sd.h dns_sd/dns_sd_print.h dns_sd/dns_sd_const.h dns_sd/fader.h
SRC += cwMdns.cpp cwEuCon.cpp cwDnsSd.cpp dns_sd/dns_sd.cpp dns_sd/dns_sd_print.cpp dns_sd/fader.cpp
# HDR += cwIo.h cwIoTest.h cwNbMem.h # HDR += cwIo.h cwIoTest.h cwNbMem.h
# SRC += cwIo.cpp cwIoTest.cpp cwNbMem.cpp # SRC += cwIo.cpp cwIoTest.cpp cwNbMem.cpp
@ -29,10 +32,13 @@ SRC += cwTcpSocket.cpp cwTcpSocketSrv.cpp cwTcpSocketTest.cpp cwMdns.cpp
LIBS = -lpthread -lwebsockets -lasound LIBS = -lpthread -lwebsockets -lasound
WS_DIR = /home/kevin/sdk/libwebsockets/build/out WS_DIR = /home/kevin/sdk/libwebsockets/build/out
INC_PATH = $(WS_DIR)/include INC_PATH = $(WS_DIR)/include
LIB_PATH = $(WS_DIR)/lib LIB_PATH = $(WS_DIR)/lib
cw_rt : $(SRC) $(HDR) cw_rt : main.cpp $(SRC) $(HDR)
g++ -g --std=c++17 $(LIBS) -Wall -L$(LIB_PATH) -I$(INC_PATH) -DcwLINUX -o $@ $(SRC) g++ -g --std=c++17 $(LIBS) -Wall -L$(LIB_PATH) -I$(INC_PATH) -I .. -DcwLINUX -o $@ main.cpp $(SRC)
avahi_surface : cwAvahiSurface.cpp $(SRC) $(HDR)
g++ -g --std=c++17 $(LIBS) -Wall -L$(LIB_PATH) -lavahi-core -lavahi-common -lavahi-client -I$(INC_PATH) -DcwLINUX -o $@ cwAvahiSurface.cpp $(SRC)