]> git.pld-linux.org Git - packages/athcool.git/blob - athcool-DESTDIR.patch
- DESTDIR support and some other small fixes
[packages/athcool.git] / athcool-DESTDIR.patch
1 --- ./Makefile.org      Sat Jun 21 07:38:54 2003
2 +++ ./Makefile  Tue Aug  5 23:58:44 2003
3 @@ -11,8 +11,9 @@
4  CC     = gcc
5  LD     = $(CC)
6  RM     = rm -f
7 -CFLAGS = -O2 -Wall
8 -LDFLAGS = $(CFLAGS)
9 +FLAGS  = -O2 -Wall
10 +CFLAGS =
11 +LDFLAGS =
12  DEF     = -I. -I$(includedir)
13  LIBPCI  = -lpci
14  LDLIBS = $(LIBPCI)
15 @@ -25,14 +26,14 @@
16  all: $(PACKAGE)
17  
18  $(PACKAGE): $(OBJS)
19 -       $(CC) $(CFLAGS) $(OBJS) $(LDLIBS) -o $@
20 +       $(CC) $(FLAGS) $(CFLAGS) $(OBJS) $(LDLIBS) -o $@
21  
22  install::
23 -       install -d $(sbindir)
24 -       install -s $(PACKAGE) $(sbindir)
25 +       install -d $(DESTDIR)$(sbindir)
26 +       install -s $(PACKAGE) $(DESTDIR)$(sbindir)
27  
28  .c.o:
29 -       $(CC) $(CFLAGS) $(DEF) -c $< -o $@
30 +       $(CC) $(FLAGS) $(CFLAGS) $(DEF) -c $< -o $@
31  
32  clean:
33         -$(RM) $(PACKAGE) *.o core *~ a.out test
This page took 0.108628 seconds and 3 git commands to generate.