summaryrefslogtreecommitdiff
path: root/Makefile
blob: 47bd57a95c26c8cbd7785fc79305cdc93bc33f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CPP=g++
CFLAGS=-O2
LDFLAGS=-los

EXE=calculator.app

OBJS=calculator.o
	
all: ${OBJS}
	${CPP} ${LDFLAGS} ${OBJS} -o ${EXE}

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

clean:
	rm ${OBJS} ${EXE}