summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
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)