moves out the file functions into their own file

This commit is contained in:
SuperNovaa41
2025-02-06 13:54:37 -05:00
parent 29f67701c0
commit f780f45c93
4 changed files with 67 additions and 55 deletions

View File

@ -1,15 +1,16 @@
TARGET=xxd
CC=gcc
OBJ = main.o hex.o
OBJ = main.o hex.o file.o
$(TARGET): $(OBJ)
mkdir -p ../build
$(CC) -Wall -g -o $(TARGET) $(OBJ) -g
mv $(TARGET) ../build/
main.o: include/hex.h
main.o: include/hex.h include/file.h
hex.o: include/hex.h
file.o: include/file.h
.PHONY: clean
clean: