summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-22 20:45:24 -0600
committermo <mo.khan@gmail.com>2019-05-22 20:45:24 -0600
commiteee99baba0c7fe58d1cafc47dda5096650d41ca1 (patch)
tree89801ac8aa2dec299ef5cc5d4e5ff6b43e33521c /Makefile
parentc2b575e70cfc74a95d52561809f5d612fc886d99 (diff)
write tiny c program
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5418524
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+SHELL=/bin/sh
+CFLAGS=-Wall -g -std=c99 -Isrc
+objects=temperature.o
+exe=./bin/temperature
+
+all: $(objects)
+ $(CC) $(CFLAGS) -o $(exe) $(objects)
+ $(exe)
+
+clean:
+ rm -fr $(Explaine) $(objects)
+
+temperature.o: src/temperature.c src/temperature.h
+ $(CC) $(CFLAGS) -c src/temperature.c