mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-10-31 15:45:09 -04:00
27 lines
380 B
Makefile
27 lines
380 B
Makefile
CC=gcc
|
|
LD=$(CC)
|
|
|
|
CFLAGS=-Wall -g
|
|
LDFLAGS=-lsetupapi
|
|
|
|
PREFIX=/usr/local
|
|
|
|
PROG=gcn64ctl
|
|
|
|
OBJS=main.o gcn64.o mempak.o gcn64lib.o hexdump.o gc2n64_adapter.o ihex.o delay.o hid.o sleep.o memmem.o
|
|
|
|
.PHONY : clean install
|
|
|
|
all: $(OBJS)
|
|
$(LD) $(OBJS) $(LDFLAGS) -o $(PROG)
|
|
|
|
%.o: %.c %.h
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean:
|
|
rm -f *.o $(PROG)
|
|
|
|
install:
|
|
@echo "Install not done yet. Sorry"
|
|
|