CC=g++ CFLAGS=-c -Wall LDFLAGS= SOURCES=simple_daq.cpp cmd_send.cpp OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=simple_daq all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ .cpp.o: $(CC) $(CFLAGS) $< -o $@ clean: rm -f $(OBJECTS) $(EXECUTABLE)