Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/Makefile
blob: 1f021776215da4421fcd714442228feab32d3285 (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
40

CXX=gcc
CFLAGS=-g -Wall -pedantic -D_GNU_SOURCE -I. -I../..
AR=ar rc
RAN=ranlib

OBJS=md5driver.o \
     md5.o \
     util.o \
     list.o \
     log.o \
     error.o \
     package.o \
     group.o \
     db.o \
     cache.o \
     conflict.o \
     deps.o \
     provide.o \
     rpmvercmp.o \
     backup.o \
     trans.o \
     add.o \
     remove.o \
     sync.o \
     handle.o \
     alpm.o

all: libalpm.a

%.o: %.c %.h
	$(CXX) -c $(CFLAGS) -o $@ $<

libalpm.a: $(OBJS) alpm.h
	$(AR) $@ $(OBJS)
	$(RAN) $@

clean:
	rm -f *.o *~ core
	rm -f libalpm.a