SRCDIR := $(SRCPARENT)/EncryptedStartup
FWSRCDIR := $(SRCPARENT)/SMACFramework
PLDSRCDIR := $(SRCPARENT)/PayloadInterfaceLib
CXXFLAGS := -DINCLUDE_LOGGER -DPAYLOAD_PORT_SLAVE_NO_CORBA -I$(SRCDIR) -I$(FWSRCDIR) -I$(PLDSRCDIR) $(LOCALCFLAGS) $(CXXFLAGSSTD) -c

SRCMODULES := \
EncryptedPayloadController \
EncryptedStartupSettings \
main

FWMODULES := \
LqrSMACBackgroundThread \
LqrSMACByteArray \
LqrSMACByteStream \
LqrSMACCmdLineParser \
LqrSMACDomainSocket \
LqrSMACDummyLogger \
LqrSMACException \
LqrSMACGetErrorDescription \
LqrSMACLoadSaveBoostXml \
LqrSMACLogger \
LqrSMACLogger_Locked \
LqrSMACPipes \
LqrSMACPOpen2 \
LqrSMACPrintfBuffer \
LqrSMACQueue \
LqrSMACReaderWriter \
LqrSMACSemaphore \
LqrSMACSerialPort \
LqrSMACSerialPortSettings \
LqrSMACStdOutLogger \
LqrSMACStdOutLoggerSettings \
LqrSMACTimeCounter \
LqrSMACUptime \
nsextend

PLDMODULES := \
CRC16 \
DoThrow \
FCCMessage_CommHeaderMessageGeneric \
FCCMessage_Utilities \
FCCMessage \
HDLCParser \
HDLCPort \
LatLon_Components \
LatLon \
PayloadMessage_Header \
PayloadMessage \
PayloadPortSlave_ThreadSafeMap \
PayloadPortSlave \
PayloadProtocol

MODULES := $(SRCMODULES) $(FWMODULES) $(PLDMODULES)

$(phony all):	$(MODULES).o

$(phony clean):
	rm -f $(MODULES).o

$(phony cleanall): clean

%.o : $(FWSRCDIR)/%.cpp
    $(CXX) $(CXXFLAGS) $(input) -o $(output)

%.o : $(PLDSRCDIR)/%.cpp
    $(CXX) $(CXXFLAGS) $(input) -o $(output)

%.o : $(SRCDIR)/%.cpp
    $(CXX) $(CXXFLAGS) $(input) -o $(output)

