progpib/pty-gpib-emulator/middle-man/Makefile

21 lines
326 B
Makefile
Raw Normal View History

2020-09-09 00:17:31 -05:00
CC=g++
CFLAGS=-c -std=c++11
LDFLAGS=
LIBRARIES=-lutil
SOURCES=MiddleMan.cpp simple.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=simple
all: $(SOURCES) $(OBJECTS) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBRARIES)
.cpp.o:
$(CC) $(CFLAGS) $< -o $@ $(LIBRARIES)
clean:
rm *.o *~ *.gch