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