summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0106a822103d5c1d30f7175f6f10fbf7621a632d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CPP=g++
WARN=-W -Wall
CFLAGS=-O2 ${WARN}
LDFLAGS=-los

EXE=Calculator.app

OBJS=CalculatorButton.o CalculatorWindow.o Calculator.o
	
all: ${OBJS}
	${CPP} ${LDFLAGS} ${OBJS} -o ${EXE}

%.o: %.cpp
	${CPP} ${CFLAGS} -c -o $@ $<

clean:
	rm ${OBJS} ${EXE}