#.KEEP_STATE: SOURCES = hca.cpp hcb.cpp main.cpp ClientStateAndData.cpp ClientServerMapper.cpp serial_port.cpp HEADERS = hca.h hcb.h ClientStateAndData.h ClientServerMapper.h serial_port.h OBJECTS = $(SOURCES:%.cpp=%.o) #LDLIBS += -lnsl # OS switch, BSD or SVR4 DEBUG= CFLAGS = $(DEBUG) all: comport_ip_server comport_ip_server: $(OBJECTS) g++ -o $@ $(LDLIBS) $(OBJECTS) %.o: %.c $(HEADERS) g++ -c $(CFLAGS) -o $@ $< clean: rm -f $(OBJECTS)