add pty-gpib-emulator from github
This commit is contained in:
28
pty-gpib-emulator/c++/Makefile
Normal file
28
pty-gpib-emulator/c++/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
CC=g++
|
||||
CFLAGS=-c -std=c++11
|
||||
LDFLAGS=
|
||||
LIBRARIES=-lutil -lboost_system
|
||||
SOURCES=PTY_Interface.cpp Prologix.cpp
|
||||
OBJECTS=$(SOURCES:.cpp=.o)
|
||||
EXECUTABLE=
|
||||
|
||||
TEST_SRC=$(SOURCES) test.cpp
|
||||
TEST_OBJ=$(TEST_SRC:.cpp=.o)
|
||||
TEST_EXE=test
|
||||
|
||||
all: $(SOURCES) $(OBJECTS)
|
||||
|
||||
test: $(TEST_SRC) $(TEST_OBJ)
|
||||
|
||||
$(TEST_EXE):
|
||||
$(CC) $(LDFLAGS) $(TEST_OBJ) $(LIBRARIES) -o $(TEST_EXE)
|
||||
|
||||
$(EXECUTABLE): $(OBJECTS)
|
||||
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
|
||||
|
||||
.cpp.o:
|
||||
$(CC) $(CFLAGS) $< -o $@
|
||||
|
||||
clean:
|
||||
rm *.o *~ *.gch
|
||||
|
Reference in New Issue
Block a user