summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-12 09:18:40 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-12 09:18:40 +0000
commit9c136f5f817ffe71b3ac4d92106e6d211e8b6e42 (patch)
tree8d8176fff5719ab3f4562ef2bae36dbb88a51d4f /Makefile
parentb1810d2fc0312c36b65bf26cc411473ef3e91db9 (diff)
first try at porting to X. very broken, minimal functionality,
but it does work..
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 973a44a..859fab7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,31 @@
# uuterm, Copyright (C) 2006 Rich Felker; licensed under GNU GPL v2 only
-SRCS = main.c term.c comb.c decomp.c tty.c alloc.c refresh.c ascii.c ucf.c font_load.c fbcon.c dblbuf.c
+SRCS = main.c term.c comb.c decomp.c tty.c alloc.c refresh.c ascii.c ucf.c font_load.c
OBJS = $(SRCS:.c=.o)
+OBJS_FB = fbcon.o dblbuf.o
+OBJS_X11 = xlib.o
+LDFLAGS_X11 = -L/usr/X11R6/lib
+
+ALL = uuterm-fb uuterm-x11
+
CFLAGS = -O2 -s #-g
LDFLAGS = -s
+LIBS = -L/usr/X11R6/lib -lX11
-include config.mak
-all: uuterm
+all: $(ALL)
+
+$(OBJS) $(OBJS_FB) $(OBJS_X11): uuterm.h
-$(OBJS): uuterm.h
+uuterm-fb: $(OBJS) $(OBJS_X11)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(OBJS_FB)
-uuterm: $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $(OBJS)
+uuterm-x11: $(OBJS) $(OBJS_X11)
+ $(CC) $(LDFLAGS) $(LDFLAGS_X11) -o $@ $(OBJS) $(OBJS_X11) -lX11
clean:
- rm -f $(OBJS) uuterm
+ rm -f $(OBJS) uuterm-fb uuterm-x11