mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-11-19 06:31:50 -05:00
0b5f1fbdd4
added amber version 1.0.0
23 lines
405 B
Makefile
23 lines
405 B
Makefile
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:
|
|
$(RM) *.o
|
|
|
|
install:
|
|
mkdir -p /ambed
|
|
cp ./ambed /ambed/
|
|
cp ./run /ambed/
|