diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2025-10-14 12:57:38 +0000 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2025-10-14 12:57:38 +0000 |
| commit | 275e2ca033a880fe959e7eb4e83268a70318ba57 (patch) | |
| tree | 312cad2e9d0dbeb608fdd300061b854e4cfa891b /Makefile | |
| download | datalab2026-275e2ca033a880fe959e7eb4e83268a70318ba57.tar.gz datalab2026-275e2ca033a880fe959e7eb4e83268a70318ba57.tar.xz | |
Initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..744cd71 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CC = gcc +CFLAGS = -O0 -Wall -std=gnu99 +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 *~ yacctab.py lextab.py result.txt .autograder_result
\ No newline at end of file |
