summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..47bd57a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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} \ No newline at end of file