summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-09-12 15:48:15 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-09-12 15:48:15 +0900
commit2b4218212198403eaa91fd99200611276b1f457a (patch)
treecaae727a18585ac06ab43c046caa5061ca69a95c /Makefile
parent0ac8c3aa841212a193bcf027025521f7adf71255 (diff)
downloadgoatc-2b4218212198403eaa91fd99200611276b1f457a.tar.gz
Fix clang plugin path lookup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 37f2fb0..c0b4a39 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,9 @@ all: $(LIB)
 goatc.so: goatc.cc
 	${CXX} ${CXXFLAGS} $< ${LDLIBS} -o $@ -shared ${LDFLAGS}
 
+goatcflags: goatcflags.m4
+	m4 -D PREFIX=${PREFIX} $< > $@
+
 install: $(INSTALLED_LIB) $(INSTALLED_BIN)
 
 ${DESTDIR}${PREFIX}/lib/%: %