Split X-specific code into x.c
[st.git] / Makefile
index fb026c4..d8595fe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 
 include config.mk
 
-SRC = st.c
+SRC = st.c x.c
 OBJ = ${SRC:.c=.o}
 
 all: options st
@@ -21,6 +21,9 @@ config.h:
        @echo CC $<
        @${CC} -c ${CFLAGS} $<
 
+st.o: config.h st.h win.h
+x.o: arg.h st.h win.h
+
 ${OBJ}: config.h config.mk
 
 st: ${OBJ}