#
# Makefile for getrpmtype
#

CC       = gcc
CFLAGS   = -Wall -O2
INCLUDES = -I/usr/include/rpm
LIBS     = -lrpm -lrpmio -lrpmdb -lpopt

SRCS   = getrpmtype.c
OBJS   = getrpmtype.o

all: $(OBJS)
	$(CC) $(CFLAGS) $(INCLUDES) $(LIBS) $(OBJS) -o getrpmtype

%.o: %.c
	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

clean:
	rm -rf $(OBJS)
