mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-11-14 21:25:00 -05:00
34 lines
556 B
Makefile
34 lines
556 B
Makefile
|
CC=gcc
|
||
|
LD=$(CC)
|
||
|
|
||
|
CFLAGS=-Wall -g --std=c99
|
||
|
LDFLAGS=-g
|
||
|
|
||
|
PREFIX=/usr/local
|
||
|
|
||
|
PROGRAMS=mempak_ls mempak_format mempak_extract_note
|
||
|
MEMPAKLIB_OBJS=mempak.o mempak_fs.o
|
||
|
|
||
|
.PHONY : clean install
|
||
|
|
||
|
all: $(PROGRAMS)
|
||
|
|
||
|
mempak_extract_note: mempak_extract_note.o $(MEMPAKLIB_OBJS)
|
||
|
$(LD) $^ $(LDFLAGS) -o $@
|
||
|
|
||
|
mempak_ls: mempak_ls.o $(MEMPAKLIB_OBJS)
|
||
|
$(LD) $^ $(LDFLAGS) -o $@
|
||
|
|
||
|
mempak_format: mempak_format.o $(MEMPAKLIB_OBJS)
|
||
|
$(LD) $^ $(LDFLAGS) -o $@
|
||
|
|
||
|
%.o: %.c %.h
|
||
|
$(CC) $(CFLAGS) -c $<
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o $(PROGRAMS)
|
||
|
|
||
|
install:
|
||
|
@echo "Install not done yet. Sorry"
|
||
|
|