summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2022-08-19 22:33:25 +1200
committerBossCode45 <human.cyborg42@gmail.com>2022-08-19 22:33:25 +1200
commit4895e9d1fa3fd4c51dfdf3e3fdac13a13cf10bd7 (patch)
tree1322197292b9aac0ecc292e8321ddc839a5e0122 /makefile
parentc15c2df9b2512c7cfeb0eaa8301b12b96cb8c590 (diff)
downloadYATwm-4895e9d1fa3fd4c51dfdf3e3fdac13a13cf10bd7.tar.gz
YATwm-4895e9d1fa3fd4c51dfdf3e3fdac13a13cf10bd7.zip
Initial commit
Diffstat (limited to 'makefile')
-rw-r--r--makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..ee98188
--- /dev/null
+++ b/makefile
@@ -0,0 +1,18 @@
+CXXFLAGS := -g `pkg-config --cflags x11`
+LDFLAGS := `pkg-config --libs x11`
+
+all: YATwm
+
+HEADERS = \
+ config.h \
+ structs.h
+SOURCES = \
+ main.cpp
+OBJECTS = $(SOURCES:.cpp=.o)
+
+newwm: $(HEADERS) $(OBJECTS)
+ $(CXX) -o $@ $(OBJECTS) $(LDFLAGS)
+
+.PHONY: clean
+clean:
+ rm -f YATwm $(OBJECTS)