Skip to content

Instantly share code, notes, and snippets.

@kogemrka
Created April 25, 2012 18:29
Show Gist options
  • Save kogemrka/2491958 to your computer and use it in GitHub Desktop.
Save kogemrka/2491958 to your computer and use it in GitHub Desktop.
makefile для компиляции примера к sqlite
CC=gcc
CFLAGS=-c -Wall -Wextra -Werror -ggdb
LDFLAGS=-lsqlite3 -lpthread -ldl
all: test
test: test.o
$(CC) $^ $(LDFLAGS) -o $@
test.o: test.c
$(CC) $(CFLAGS) $^ -o $@
.PHONY: clean
clean:
rm *.o test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment