<commit_before># opfs: a simple utility for manipulating xv6 file system images
# Copyright (c) 2015, 2016 <NAME>

HDRS = libfs.h $(XV6HDRS)
SRCS = opfs.c newfs.c modfs.c libfs.c
OBJS = $(SRCS:%.c=%.o)
LIBS = libfs.o
EXES = opfs newfs modfs

TAGFILES = GTAGS GRTAGS GPATH

XV6HOME = $(HOME)/xv6
XV6HDRS = types.h fs.h

CC = gcc
CFLAGS = -std=c11 -pedantic -Wall -Werror -g
CPPFLAGS = # -DNDEBUG
LDFLAGS =
OPTFLAGS =

RM = rm -f
CP = cp
GTAGS = gtags

%.o: %.c $(HDRS)
	$(CC) $(CFLAGS) $(CPPFLAGS) $(OPTFLAGS) -c $<

.PHONY: all tags clean allclean

.PRECIOUS: %.o

all: $(EXES)

opfs: opfs.o $(LIBS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OPTFLAGS) -o $@ $^

newfs: newfs.o $(LIBS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OPTFLAGS) -o $@ $^

modfs: modfs.o $(LIBS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OPTFLAGS) -o $@ $^

$(XV6HDRS): $(XV6HOME)
	$(CP) $(XV6HOME)/types.h .
	$(CP) $(XV6HOME)/fs.h .
<commit_msg>Changed C standard to C99 in order to be compiled in old compilers<commit_after># opfs: a simple utility for manipulating xv6 file system images
# Copyright (c) 2015, 2016 <NAME>

HDRS = libfs.h $(XV6HDRS)
SRCS = opfs.c newfs.c modfs.c libfs.c
OBJS = $(SRCS:%.c=%.o)
LIBS = libfs.o
EXES = opfs newfs modfs

TAGFILES = GTAGS GRTAGS GPATH

XV6HOME = $(HOME)/xv6
XV6HDRS = types.h fs.h

CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -Werror -g
CPPFLAGS = # -DNDEBUG
LDFLAGS =
OPTFLAGS =

RM = rm -f
CP = cp
GTAGS = gtags

%.o: %.c $(HDRS)
	$(CC) $(CFLAGS) $(CPPFLAGS) $(OPTFLAGS) -c $<

.PHONY: all tags clean allclean

.PRECIOUS: %.o

all: $(EXES)

opfs: opfs.o $(LIBS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OPTFLAGS) -o $@ $^

newfs: newfs.o $(LIBS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OPTFLAGS) -o $@ $^

modfs: modfs.o $(LIBS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OPTFLAGS) -o $@ $^

$(XV6HDRS): $(XV6HOME)
	$(CP) $(XV6HOME)/types.h .
	$(CP) $(XV6HOME)/fs.h .

{'fraction_non_alphanumeric': 0.20208676551345414, 'fraction_numerical': 0.021965952773201538, 'mean_word_length': 3.659846547314578, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '386022', 'n_tokens_mistral': 884, 'n_tokens_neox': 828, 'n_words': 226}