aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile21
1 files changed, 21 insertions, 0 deletions
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