summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 16:49:04 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 16:49:04 +0100
commit9d19f7f844be74359b054d3bf395d6fdff5c20f8 (patch)
tree914bdb310b9d0db2a42a17809911a0bc93e39f26 /Makefile
parent99d1766681b543dc0e2e50138c473fbcabd1c809 (diff)
improve compat
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 17 insertions, 26 deletions
diff --git a/Makefile b/Makefile
index db6351e..47ee223 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ SRC = \
sfeed_plain.c\
sfeed_web.c\
sfeed_xmlenc.c\
+ strlcpy.c\
util.c\
xml.c
BIN = \
@@ -45,13 +46,7 @@ HDR = \
util.h\
xml.h
-LIBCOMPAT = libcompat.a
-LIBCOMPATSRC = \
- compat/strlcpy.c
-LIBCOMPATOBJ = $(LIBCOMPATSRC:.c=.o)
-
-OBJ = ${SRC:.c=.o} \
- $(LIBCOMPATOBJ)
+OBJ = ${SRC:.c=.o}
all: $(BIN)
@@ -88,33 +83,29 @@ doc-oldman: $(MAN1)
${OBJ}: config.mk
-$(LIBCOMPAT): $(LIBCOMPATDOBJ)
- $(AR) -r -c $@ $?
- $(RANLIB) $@
-
-sfeed: sfeed.o xml.o util.o
- ${CC} -o $@ sfeed.o xml.o util.o ${LDFLAGS}
+sfeed: sfeed.o xml.o util.o ${EXTRAOBJ}
+ ${CC} -o $@ $? ${LDFLAGS}
-sfeed_opml_import: sfeed_opml_import.o xml.o util.o
- ${CC} -o $@ sfeed_opml_import.o xml.o util.o ${LDFLAGS}
+sfeed_opml_import: sfeed_opml_import.o xml.o util.o ${EXTRAOBJ}
+ ${CC} -o $@ $? ${LDFLAGS}
-sfeed_plain: sfeed_plain.o util.o
- ${CC} -o $@ sfeed_plain.o util.o ${LDFLAGS}
+sfeed_plain: sfeed_plain.o util.o ${EXTRAOBJ}
+ ${CC} -o $@ $? ${LDFLAGS}
-sfeed_html: sfeed_html.o util.o
- ${CC} -o $@ sfeed_html.o util.o ${LDFLAGS}
+sfeed_html: sfeed_html.o util.o ${EXTRAOBJ}
+ ${CC} -o $@ $? ${LDFLAGS}
-sfeed_frames: sfeed_frames.o util.o
- ${CC} -o $@ sfeed_frames.o util.o ${LDFLAGS}
+sfeed_frames: sfeed_frames.o util.o ${EXTRAOBJ}
+ ${CC} -o $@ $? ${LDFLAGS}
-sfeed_xmlenc: sfeed_xmlenc.o xml.o
- ${CC} -o $@ sfeed_xmlenc.o xml.o ${LDFLAGS}
+sfeed_xmlenc: sfeed_xmlenc.o xml.o ${EXTRAOBJ}
+ ${CC} -o $@ $? ${LDFLAGS}
-sfeed_web: sfeed_web.o xml.o util.o
- ${CC} -o $@ sfeed_web.o xml.o util.o ${LDFLAGS}
+sfeed_web: sfeed_web.o xml.o util.o ${EXTRAOBJ}
+ ${CC} -o $@ $? ${LDFLAGS}
clean:
- rm -f ${BIN} ${OBJ} ${LIBCOMPAT}
+ rm -f ${BIN} ${OBJ}
install: all
# installing executable files and scripts.