ScrapExplorer - Makefile
Home / lab / c / compiled_c / src / general / cat_strings Lines: 1 | Size: 546 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1# Compiled C 2# A collection of C programs that are compiled to assembly 3# code for understanding how C and assembly work. 4# GitHub: https://wwww.github.com/0x4248/Compiled_C 5# Licence: GNU General Public Licence v3.0 6# By: 0x4248 7 8include ../../../config.mk 9 10MAIN = main.c 11BUILD = build 12 13all: clean init compile 14 15init: 16 @mkdir -p $(BUILD) 17 18compile: 19 @$(GCC) $(CFLAGS) $(MAIN) -o $(BUILD)/compiled 20 @$(OBJ_DUMP) -d -s -t -r -w $(BUILD)/compiled > $(BUILD)/objdump.txt 21 @$(GCC) $(CFLAGS) -S $(MAIN) -o $(BUILD)/assembly.s 22 23clean: 24 @rm -rf $(BUILD)[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.