psx emulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
297 B

CFLAGS ?= -Wall -Wextra -Iinclude
HFILES := $(shell find include -type f -name '*.h')
CFILES := $(shell find src -type f -name '*.c')
OFILES := $(CFILES:%.c=%.o)
.PHONY: clean
psxc: $(OFILES)
$(CC) $(OFILES) -o $@
%.o: %.c $(HFILES)
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OFILES) psxc