35 lines
683 B
Diff
35 lines
683 B
Diff
diff --git Makefile Makefile
|
|
index 725f750..17a47c0 100644
|
|
--- Makefile
|
|
+++ Makefile
|
|
@@ -9,22 +9,22 @@ GD_LIBS=-lgd
|
|
|
|
LIBS=${GLIB_LIBS} ${XLIB_LIBS} ${GD_LIBS}
|
|
|
|
+CFLAGS += $(GLIB_CFLAGS)
|
|
+CFLAGS += $(XLIB_CFLAGS)
|
|
+LDFLAGS := $(LIBS) $(LDFLAGS)
|
|
+
|
|
+INSTALL = install
|
|
+
|
|
PREFIX=/usr/local
|
|
BINDIR=$(PREFIX)/bin
|
|
|
|
all: xseticon
|
|
|
|
-xseticon.o: xseticon.c
|
|
- gcc ${GLIB_CFLAGS} ${XLIB_CFLAGS} -c $^ -o $@
|
|
-
|
|
-xseticon: xseticon.o
|
|
- gcc ${LIBS} $^ -o $@
|
|
-
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f xseticon.o xseticon
|
|
|
|
.PHONY: install
|
|
install: xseticon
|
|
- install -d $(BINDIR)
|
|
- install -m 755 xseticon $(BINDIR)
|
|
+ $(INSTALL) -d $(DESTDIR)$(BINDIR)
|
|
+ $(INSTALL) -m 755 xseticon $(DESTDIR)$(BINDIR)
|