mirror of
https://github.com/libretro/parallel-n64.git
synced 2024-11-23 08:09:50 +00:00
32 lines
502 B
Makefile
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 $@ $<
|
||
|
|