mirror of
https://github.com/XboxDev/nxdk.git
synced 2026-02-04 18:45:53 +00:00
24 lines
308 B
Makefile
24 lines
308 B
Makefile
MAIN = vp20compiler
|
|
|
|
INCLUDES = $(wildcard *.h)
|
|
|
|
SRCS = nvvertparse.c \
|
|
prog_instruction.c \
|
|
main.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
$(MAIN): $(OBJS)
|
|
$(CC) -o '$@' $(OBJS)
|
|
|
|
%.o: %.c ${INCLUDES}
|
|
$(CC) $(CFLAGS) -c -o '$@' '$<'
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(OBJS)
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
rm -f $(MAIN)
|