summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..0106a82
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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}