summary refs log tree commit diff stats
path: root/Makefile
blob: d9a33df05a0b2a5c3bdac3b5b0758d38290953ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
CC = g++
LD = g++
TARGET = kankri
SOURCE = IRC.cpp main.cpp
MODULES = $(addsuffix .o,$(patsubst %.cpp,%,$(SOURCE)))
CCFLAGS = -I/usr/local/Cellar/yaml-cpp/0.5.0/include
LDFLAGS = -lyaml-cpp

$(TARGET): $(MODULES)
	$(LD) $(MODULES) $(LDFLAGS) -o $(TARGET)

$(MODULES): %.o: %.cpp
	$(CC) -c $? -o $@ $(CCFLAGS)