1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-11-10 10:23:28 -05:00
xlxd/ambedtest/makefile

18 lines
344 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=ambedtest
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
2017-11-13 02:58:59 -05:00
$(CC) $(LDFLAGS) $(OBJECTS) -Wl,-rpath,/usr/local/lib -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
clean:
2017-11-13 02:58:59 -05:00
$(RM) $(EXECUTABLE) *.o