aboutsummaryrefslogtreecommitdiffstats
path: root/package/maccalc/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/maccalc/src/Makefile')
-rw-r--r--package/maccalc/src/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/maccalc/src/Makefile b/package/maccalc/src/Makefile
new file mode 100644
index 0000000000..486badb256
--- /dev/null
+++ b/package/maccalc/src/Makefile
@@ -0,0 +1,14 @@
+CC = gcc
+CFLAGS = -Wall
+OBJS = main.o
+
+all: maccalc
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+maccalc: $(OBJS)
+ $(CC) -o $@ $(OBJS)
+
+clean:
+ rm -f maccalc *.o