Skip to content

Instantly share code, notes, and snippets.

View Airtnp's full-sized avatar
💭
Studying for ever

LR.X Airtnp

💭
Studying for ever
View GitHub Profile
@Airtnp
Airtnp / Makefile example
Last active January 6, 2020 01:04
More general Makefile example
PATH := $(PATH)
LIBRARY_PATH := $(LIBRARY_PATH)
LD_LIBRARY_PATH := $(LD_LIBRARY_PATH)
LD_RUN_PATH := $(LD_RUN_PATH)
TESTSRCS = $(wildcard test*.cpp)
PROJSRCS = $(wildcard project*.cpp)
SRCS = $(wildcard *.cpp)
SRCS = $(filter-out $(TESTSRCS), $(SRCS))