From 29b8260110ad54dca38e84e26e5574ce802c8bf7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Tue, 5 Aug 2003 21:59:03 +0000 Subject: [PATCH] - DESTDIR support and some other small fixes Changed files: athcool-DESTDIR.patch -> 1.1 --- athcool-DESTDIR.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 athcool-DESTDIR.patch diff --git a/athcool-DESTDIR.patch b/athcool-DESTDIR.patch new file mode 100644 index 0000000..09b1821 --- /dev/null +++ b/athcool-DESTDIR.patch @@ -0,0 +1,33 @@ +--- ./Makefile.org Sat Jun 21 07:38:54 2003 ++++ ./Makefile Tue Aug 5 23:58:44 2003 +@@ -11,8 +11,9 @@ + CC = gcc + LD = $(CC) + RM = rm -f +-CFLAGS = -O2 -Wall +-LDFLAGS = $(CFLAGS) ++FLAGS = -O2 -Wall ++CFLAGS = ++LDFLAGS = + DEF = -I. -I$(includedir) + LIBPCI = -lpci + LDLIBS = $(LIBPCI) +@@ -25,14 +26,14 @@ + all: $(PACKAGE) + + $(PACKAGE): $(OBJS) +- $(CC) $(CFLAGS) $(OBJS) $(LDLIBS) -o $@ ++ $(CC) $(FLAGS) $(CFLAGS) $(OBJS) $(LDLIBS) -o $@ + + install:: +- install -d $(sbindir) +- install -s $(PACKAGE) $(sbindir) ++ install -d $(DESTDIR)$(sbindir) ++ install -s $(PACKAGE) $(DESTDIR)$(sbindir) + + .c.o: +- $(CC) $(CFLAGS) $(DEF) -c $< -o $@ ++ $(CC) $(FLAGS) $(CFLAGS) $(DEF) -c $< -o $@ + + clean: + -$(RM) $(PACKAGE) *.o core *~ a.out test -- 2.43.0