diff options
| author | ov-4 <hausemasterstream@gmail.com> | 2026-01-05 11:00:14 +0000 |
|---|---|---|
| committer | ov-4 <hausemasterstream@gmail.com> | 2026-01-05 11:00:14 +0000 |
| commit | 63c370f9b8d7c58c52ecd85a68e3062b41522ff6 (patch) | |
| tree | 27f1657228f8e320b8f45610c5b68bb0592c4183 /datalab-handout/Makefile | |
| parent | 2211b73a6c1fbdf1dd974b46f0315d79ac5cae7e (diff) | |
Data lab initialization
Diffstat (limited to 'datalab-handout/Makefile')
| -rw-r--r-- | datalab-handout/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/datalab-handout/Makefile b/datalab-handout/Makefile new file mode 100644 index 0000000..1ef6fcf --- /dev/null +++ b/datalab-handout/Makefile @@ -0,0 +1,26 @@ +# +# Makefile that builds btest and other helper programs for the CS:APP data lab +# +CC = gcc +CFLAGS = -O -Wall -m32 +LIBS = -lm + +all: btest fshow ishow + +btest: btest.c bits.c decl.c tests.c btest.h bits.h + $(CC) $(CFLAGS) $(LIBS) -o btest bits.c btest.c decl.c tests.c + +fshow: fshow.c + $(CC) $(CFLAGS) -o fshow fshow.c + +ishow: ishow.c + $(CC) $(CFLAGS) -o ishow ishow.c + +# Forces a recompile. Used by the driver program. +btestexplicit: + $(CC) $(CFLAGS) $(LIBS) -o btest bits.c btest.c decl.c tests.c + +clean: + rm -f *.o btest fshow ishow *~ + + |
