parallel-n64/tools/Makefile

32 lines
502 B
Makefile
Raw Normal View History

2015-08-11 18:59:57 +00:00
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 $@ $<