sqlite3 based squid urlfilter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
235 B

CFLAGS := -O2 -Wall -g
all: urlfilter urlfilter.db
urlfilter: urlfilter.o
$(CC) $(CFLAGS) -lsqlite3 -o $@ $^
urlfilter.db: urlfilter.sql
sqlite3 $@ < $^
%.o: %.c
$(CC) $(CFLAGS) -c $^
clean:
rm -rf urlfilter urlfilter.db *.o