mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-10-31 22:37:12 -04:00
18 lines
330 B
Makefile
18 lines
330 B
Makefile
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)
|
|
$(CC) $(LDFLAGS) $(OBJECTS) -Wl,-rpath,/usr/local/lib -o $@
|
|
|
|
.cpp.o:
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
clean:
|
|
$(RM) *.o
|