diff options
| author | mo <mo.khan@gmail.com> | 2019-05-22 20:45:24 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-22 20:45:24 -0600 |
| commit | eee99baba0c7fe58d1cafc47dda5096650d41ca1 (patch) | |
| tree | 89801ac8aa2dec299ef5cc5d4e5ff6b43e33521c /Makefile | |
| parent | c2b575e70cfc74a95d52561809f5d612fc886d99 (diff) | |
write tiny c program
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
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 |
