summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c241cf8..9dfc429 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,6 @@
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
@@ -12,19 +11,20 @@ ALL = uuterm-x11 uuterm-fb
CFLAGS = -O2 -s #-g
LDFLAGS = -s
-LIBS = -L/usr/X11R6/lib -lX11
-include config.mak
+OBJS = $(SRCS:.c=.o)
+
all: $(ALL)
$(OBJS) $(OBJS_FB) $(OBJS_X11): uuterm.h
uuterm-fb: $(OBJS) $(OBJS_FB)
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(OBJS_FB)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(OBJS_FB) $(LIBS)
uuterm-x11: $(OBJS) $(OBJS_X11)
- $(CC) $(LDFLAGS) $(LDFLAGS_X11) -o $@ $(OBJS) $(OBJS_X11) -lX11
+ $(CC) $(LDFLAGS) $(LDFLAGS_X11) -o $@ $(OBJS) $(OBJS_X11) -lX11 $(LIBS)
clean:
rm -f $(OBJS) $(OBJS_FB) $(OBJS_X11) uuterm-fb uuterm-x11