CC := gcc CFLAGS := -O3 -Ofast -ffast-math CLIBS := -fopenmp C_TOKENIZER := tokenizer.bin SRC := *.c tokenizer.o TARGET := a.out all: $(TARGET) clean: $(RM) $(TARGET) *.o wipe: make clean $(RM) *.bin *.txt run: $(TARGET) ./$< data.txt data.bin $(C_TOKENIZER): awk 'BEGIN {for (i = 0; i <= 255; i++) printf("%c%c%c", i, 0, 0)}' > $@ #elf64-littleaarch64 tokenizer.o: $(C_TOKENIZER) objcopy --input-target binary \ --output-target elf64-x86-64 \ $< $@ #--redefine-sym _binary_tokenizer_bin_start=_embedded_binary_tokenizer \ #$< $@ $(TARGET): $(SRC) $(CC) $(CFLAGS) -o $@ $^ $(CLIBS)