<commit_before>.POSIX:

VERSION = 4

#CC=clang

CFLAGS += -std=c99 -fPIC
CPPFLAGS += -DTYPE_DEPENDENT_DISPATCH
CPPFLAGS += -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500

#LIB_DIR=/usr/local/GNUstep/Local/Library/Libraries/
#HEADER_DIR=/usr/local/GNUstep/Local/Library/Headers
LIB_DIR=/tmp/usr/lib/
HEADER_DIR=/tmp/usr/include/

OBJECTS = \
	NSBlocks.o\
	Protocol2.o\
	abi_version.o\
	blocks_runtime.o\
	caps.o\
	category_loader.o\
	class_table.o\
	dtable.o\
	eh_personality.o\
	encoding2.o\
	hash_table.o\
	hooks.o\
	ivar.o\
	legacy_malloc.o\
	loader.o\
	mutation.o\
	properties.o\
	protocol.o\
	runtime.o\
	sarray2.o\
	selector_table.o\
	sendmsg2.o\
	statics_loader.o\
	sync.o

all: libobjc.so.$(VERSION) libobjc.a

libobjc.so.$(VERSION): $(OBJECTS)
	@echo Linking shared library...
	@ld -shared -o $@ $(OBJECTS)
	@@ -4,7 +4,7 @@

libobjc.a: $(OBJECTS)
	@echo Linking static library...
	@ld -r -s -o $@ $(OBJECTS)

libobjc.so.$(VERSION): $(OBJECTS)
		@echo Linking shared library...

.c.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@

.m.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@

install: all
	install -m 444 libobjc.so.$(VERSION) $(LIB_DIR)
	ln -sf $(LIB_DIR)/libobjc.so.$(VERSION) $(LIB_DIR)/libobjc.so
	install -d $(HEADER_DIR)/objc
	install -m 444 objc/*.h $(HEADER_DIR)/objc

clean:
	rm -f $(OBJECTS)
	rm -f libobjc.so.$(VERSION)
	rm -f libobjc.a<commit_msg>Improvements to the Makefile.  Patch by <NAME>.<commit_after>.POSIX:

VERSION = 4

#CC=clang

CFLAGS += -std=c99 -fPIC
CPPFLAGS += -DTYPE_DEPENDENT_DISPATCH
CPPFLAGS += -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500

PREFIX?= /usr/local
LIB_DIR= ${PREFIX}/lib
HEADER_DIR= ${PREFIX}/include

OBJECTS = \
	NSBlocks.o\
	Protocol2.o\
	abi_version.o\
	blocks_runtime.o\
	caps.o\
	category_loader.o\
	class_table.o\
	dtable.o\
	eh_personality.o\
	encoding2.o\
	hash_table.o\
	hooks.o\
	ivar.o\
	legacy_malloc.o\
	loader.o\
	mutation.o\
	properties.o\
	protocol.o\
	runtime.o\
	sarray2.o\
	selector_table.o\
	sendmsg2.o\
	statics_loader.o\
	sync.o

all: libobjc.so.$(VERSION) libobjc.a

libobjc.so.$(VERSION): $(OBJECTS)
	@echo Linking shared library...
	@ld -shared -o $@ $(OBJECTS)

libobjc.a: $(OBJECTS)
	@echo Linking static library...
	@ld -r -s -o $@ $(OBJECTS)

.c.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@

.m.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@

install: all
	install -m 444 libobjc.so.$(VERSION) $(LIB_DIR)
	install -m 444 libobjc.a $(LIB_DIR)
	ln -sf $(LIB_DIR)/libobjc.so.$(VERSION) $(LIB_DIR)/libobjc.so
	install -d $(HEADER_DIR)/objc
	install -m 444 objc/*.h $(HEADER_DIR)/objc

clean:
	rm -f $(OBJECTS)
	rm -f libobjc.so.$(VERSION)
	rm -f libobjc.a
{'fraction_non_alphanumeric': 0.18164580963215776, 'fraction_numerical': 0.015547971179370497, 'mean_word_length': 3.4187604690117253, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 4, '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': '2285357', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1201, 'n_words': 232}