1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-11-19 22:51:51 -05:00
xlxd/ambed/makefile

23 lines
425 B
Makefile
Raw Normal View History

CC=g++
CFLAGS=-c -std=c++11 -pthread
LDFLAGS=-std=c++11 -pthread
SOURCES=$(wildcard *.cpp)
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=ambed
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -lftd2xx -Wl,-rpath,/usr/local/lib -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
clean:
2017-08-24 05:05:31 -04:00
$(RM) $(EXECUTABLE) *.o
install:
mkdir -p /ambed
2017-08-24 05:05:31 -04:00
cp $(EXECUTABLE) /ambed/
cp ./run /ambed/