From 5e0d67f455f6b481ef53793d19dd37c8778138f6 Mon Sep 17 00:00:00 2001 From: "Lucas C. Villa Real" Date: Mon, 5 Dec 2016 20:20:26 +0000 Subject: First commit. --- src/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..5dbc4cb --- /dev/null +++ b/src/Makefile @@ -0,0 +1,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 -- cgit v1.1