summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordianshi <dianshi@main.lv>2020-04-05 11:41:04 +0100
committerdianshi <dianshi@main.lv>2020-04-05 11:41:04 +0100
commit051cea0b4bf3bdffb7db025124b2b4757d8a1b31 (patch)
treebbddbd463ed4c81bcababa1e83da14d803f25767 /Makefile
parentee81e9f51d1406c1591de0cae620552880f326f7 (diff)
downloaddwm-pixel-051cea0b4bf3bdffb7db025124b2b4757d8a1b31.tar.gz
dwm-pixel-051cea0b4bf3bdffb7db025124b2b4757d8a1b31.zip
Initial non moded with all souces added
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9f68e18
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,44 @@
+CC=cc
+CFLAGS=
+LDFLAGS=
+
+X11LIB = /usr/X11R6/lib
+
+XINERAMALIBS = -lXinerama
+XINERAMAFLAGS = -DXINERAMA
+
+
+CFLAGS += -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\"
+LDFLAGS += -L${X11LIB} -lX11 ${XINERAMALIBS}
+
+CFLAGS += `pkg-config --cflags xft pango pangoxft`
+LDFLAGS += `pkg-config --libs xft pango pangoxft`
+
+VERSION = 6.1
+
+SRC = dwm.c drw.c util.c
+OBJ = ${SRC:.c=.o}
+
+.c.o:
+ @echo CC $<
+ echo $(CFLAGS)
+ echo $(LDFLAGS)
+ ${CC} ${CFLAGS} -c $<
+
+dwm: ${OBJ}
+ @echo CC -o $@
+ echo $(CFLAGS)
+ ${CC} -o $@ ${OBJ} ${LDFLAGS}
+
+kconfig2h:
+ $(CC) -c kconf2h/kconf2h_parser.c
+ $(CC) kconf2h/kconf2h.c kconf2h_parser.o -o kconf2h/kconf2h
+
+menuconfig: kconfig2h
+ ./mconf Kconfig
+ kconf2h/kconf2h .config kconfig.h
+
+clean:
+ rm -rf dwm
+ rm -rf *.o
+