aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 5dbc4cb2580e52e776622da6a2e34de450a8e043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC       = gcc
MYCFLAGS = -O3 -Wall
TARGETS  = rpminfo

# first rule
default: all

.PHONY: all default

all: $(TARGETS)

rpminfo: rpminfo.c
	$(CC) $(MYCFLAGS) $^ -o $@ -lrpm -lrpmdb -lrpmio -I/usr/include/rpm

debug: MYCFLAGS = -g -ggdb -O0 -DDEBUG -Wall
debug: all

clean:
	rm -f $(TARGETS)

.PHONY: all clean debug install