From da3aa8b99fea249422b78827edee1a9ffb990494 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 12 Oct 2025 19:38:45 -0400 Subject: project: Add emux64 emulator skeleton Signed-off-by: Ian Moffett --- emux64/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 emux64/Makefile (limited to 'emux64/Makefile') diff --git a/emux64/Makefile b/emux64/Makefile new file mode 100644 index 0000000..8455235 --- /dev/null +++ b/emux64/Makefile @@ -0,0 +1,16 @@ +CC = gcc +CFLAGS = -pedantic -Isrc/include/ +CFILES = $(shell find src/ -name "*.c") +OFILES = $(CFILES:.c=.o) + +.PHONY: all +all: $(OFILES) + mkdir -p bin/ + $(CC) $^ $(CFLAGS) -o bin/emux + +%.c: %.o + $(CC) -c $< $(CFLAGS) + +.PHONY: clean +clean: + rm $(OFILES) -- cgit v1.2.3