Add 'labs/' from commit '58cd0413b229aea4bad859401adb7f4cb8f4474d'

git-subtree-dir: labs
git-subtree-mainline: 4d409d3106
git-subtree-split: 58cd0413b2
This commit is contained in:
2025-09-18 15:31:05 +09:00
12 changed files with 1993 additions and 0 deletions

26
labs/01_datalab/Makefile Normal file
View File

@@ -0,0 +1,26 @@
#
# Makefile that builds btest and other helper programs for CSE4009 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 *~