19 lines
218 B
Makefile
19 lines
218 B
Makefile
CC=g++
|
|
|
|
CFLAGS= -Wall -g
|
|
LDLIBS= -lpqxx -lpq
|
|
SOURCES= $(wildcard *.cpp)
|
|
|
|
all: main
|
|
|
|
main: $(SOURCES)
|
|
$(CC) $(CFLAGS) -o main $(SOURCES) $(LDLIBS)
|
|
|
|
clean:
|
|
$(RM) main *.o *~
|
|
|
|
run: main
|
|
./main
|
|
|
|
.PHONY: all clean run
|