aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-02 04:21:26 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-02 04:37:17 -0400
commita513d9943fb71607ac8c0f2f3695dec9706f1ebb (patch)
treed55dacb37503fd6749009d61fa84c8866d668f5f /Makefile
parent957ef4d81438a74d530f2a3890bfcd0145c11fd9 (diff)
downloadrunes-a513d9943fb71607ac8c0f2f3695dec9706f1ebb.tar.gz
runes-a513d9943fb71607ac8c0f2f3695dec9706f1ebb.zip
start working on a client/server model similar to urxvtd/urxvtc
the code is still kind of a mess, and it doesn't quite work properly yet, but it's close enough to be a start, i think
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 271e681..fe7f69d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
OUT = runes
+DOUT = runesd
+COUT = runesc
BUILD = build/
SRC = src/
OBJ = $(BUILD)runes.o \
@@ -9,6 +11,17 @@ OBJ = $(BUILD)runes.o \
$(BUILD)pty-unix.o \
$(BUILD)loop.o \
$(BUILD)util.o
+DOBJ = $(BUILD)runesd.o \
+ $(BUILD)display.o \
+ $(BUILD)term.o \
+ $(BUILD)config.o \
+ $(BUILD)window-xlib.o \
+ $(BUILD)pty-unix.o \
+ $(BUILD)loop.o \
+ $(BUILD)util.o \
+ $(BUILD)socket.o
+COBJ = $(BUILD)runesc.o \
+ $(BUILD)util.o
LIBS = cairo cairo-xlib libuv pangocairo
CFLAGS ?= -g -Wall -Wextra -Werror
LDFLAGS ?= -g -Wall -Wextra -Werror
@@ -18,11 +31,17 @@ ALLLDFLAGS = $(shell pkg-config --libs $(LIBS)) $(LDFLAGS)
MAKEDEPEND = $(CC) $(ALLCFLAGS) -M -MP -MT '$@ $(@:$(BUILD)%.o=$(BUILD).%.d)'
-build: $(OUT)
+build: $(OUT) $(DOUT) $(COUT)
$(OUT): $(OBJ) libvt100/libvt100.a
$(CC) $(ALLLDFLAGS) -o $@ $^
+$(DOUT): $(DOBJ) libvt100/libvt100.a
+ $(CC) $(ALLLDFLAGS) -o $@ $^
+
+$(COUT): $(COBJ)
+ $(CC) $(ALLLDFLAGS) -o $@ $^
+
libvt100/libvt100.a:
cd libvt100 && make static
@@ -41,7 +60,7 @@ $(SRC)%.h: $(SRC)%.l
clean:
cd libvt100 && make clean
- rm -f $(OUT) $(OBJ) $(OBJ:$(BUILD)%.o=$(BUILD).%.d)
+ rm -f $(OUT) $(OBJ) $(OBJ:$(BUILD)%.o=$(BUILD).%.d) $(DOUT) $(DOBJ) $(DOBJ:$(BUILD)%.o=$(BUILD).%.d) $(COUT) $(COBJ) $(COBJ:$(BUILD)%.o=$(BUILD).%.d)
@rmdir -p $(BUILD) > /dev/null 2>&1
-include $(OBJ:$(BUILD)%.o=$(BUILD).%.d)