summaryrefslogtreecommitdiff
path: root/Makefile
blob: b66e271c990127ae12d9f9eee30d3b99b3e40daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# mysql db info.
DB_NAME:="archlinux"
DB_USER:="archlinux"
DB_PASS:="passwords-are-cool"

MYSQL_DEFS:=-DDB_NAME=\"$(DB_NAME)\" -DDB_USER=\"$(DB_USER)\" -DDB_PASS=\"$(DB_PASS)\"
MYSQL_FLAGS:=-I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient

all: pkgdb2-add pkgdb2-del

pkgdb2-add: pkgdb2-add.c
	gcc $(MYSQL_DEFS) $(MYSQL_FLAGS) -o pkgdb2-add pkgdb2-add.c

pkgdb2-del: pkgdb2-del.c
	gcc $(MYSQL_DEFS) $(MYSQL_FLAGS) -o pkgdb2-del pkgdb2-del.c

clean:
	rm -f pkgdb2-add pkgdb2-del

.PHONY: all clean