blob: 3d2874ac1e266bc7d108e42b4b01bcdd4ae29175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
CC=gcc
CFLAGS=-g -Wall -D_GNU_SOURCE -I. -I../.. -I../../lib/libalpm -I../../lib/libftp
LDFLAGS=-L../../lib/libalpm -lalpm -L../../lib/libftp -lftp -ltar -lz
AR=ar rc
RAN=ranlib
OBJECTS=util.o \
list.o \
package.o \
db.o \
download.o \
add.o \
remove.o \
upgrade.o \
query.o \
sync.o \
conf.o \
pacman.o
all: pacman
%.o: %.c %.h
$(CC) -c $(CFLAGS) -o $@ $<
pacman: $(OBJECTS) ../../lib/libalpm/libalpm.a
$(CC) $(OBJECTS) -o $@ $(CFLAGS) $(LDFLAGS)
clean:
rm -f *.o *~ core
rm -f pacman pacman.static convertdb vercmp
install: pacman vercmp convertdb
$(INSTALL) -D -m0755 pacman $(DESTDIR)$(BINDIR)/pacman
$(INSTALL) -D -m0755 pacman.static $(DESTDIR)$(BINDIR)/pacman.static
$(INSTALL) -D -m0755 vercmp $(DESTDIR)$(BINDIR)/vercmp
$(INSTALL) -D -m0755 convertdb $(DESTDIR)$(BINDIR)/convertdb
|