parallel-n64/tools/Makefile
2015-08-11 15:59:57 -03:00

32 lines
502 B
Makefile

binext :=
ifeq ($(platform),win32)
binext := .exe
static := 1
endif
ifeq ($(static),1)
lflags += -static-libgcc -static
endif
cflags += -O2 -g -Wall $(extracflags)
lflags +=
libs += -lm
bins += pj64tosrm$(binext) m64pmigrate$(binext)
.PHONY: all clean
all: $(bins)
clean:
-rm -f $(bins)
pj64tosrm$(binext): pj64tosrm.c
$(CC) $(cflags) -o$@ $(lflags) $< $(libs)
m64pmigrate$(binext): m64pmigrate.c
$(CC) $(cflags) -o$@ $(lflags) $< $(libs)
%.o: %.c
$(CC) $(cflags) -c -o $@ $<