chiark / gitweb /
xduplic-copier: an attempt at correct library dependencies
[chiark-utils.git] / cprogs / Makefile
index 5a349c1..3dcc0e7 100644 (file)
@@ -51,16 +51,17 @@ readbuffer.o writebuffer.o rwbuffer.o wrbufcore.o trivsoundd.o:     rwbuffer.h
 
 xbatmon-simple: LDLIBS += -lX11 -lm
 
-xduplic-copier: LDLIBS += -lXmu
+xduplic-copier: LDLIBS += -lXmu -lSM -lICE -lXt -lXext
+xduplic-copier: LDLIBS += -lX11 -lxcb -lXau -lXdmcmp
 
 summer:                summer.o
-               $(CC) -o $@ $< -lnettle -lgmp
+summer:                LDLIBS += -lnettle -lgmp
 
 rcopy-repeatedly: rcopy-repeatedly.o myopt.o
-               $(CC) -o $@ $^ -lm -lrt
+rcopy-repeatedly: LDLIBS += -lm -lrt
 
 watershed:     watershed.o
-               $(CC) -o $@ $< -lnettle -lgmp
+watershed:     LDLIBS += -lnettle -lgmp
 
 watershed.txt: watershed.c
                sed '/^$$/,$$d' <$^ >$@.new && mv -f $@.new $@