mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-11-16 22:25:03 -05:00
27 lines
308 B
Makefile
27 lines
308 B
Makefile
CC=gcc
|
|
LD=$(CC)
|
|
|
|
CFLAGS=-Wall -g
|
|
LDFLAGS=-lsetupapi
|
|
|
|
PREFIX=/usr/local
|
|
|
|
PROG=wusbmote_ctl
|
|
|
|
OBJS=main.o wusbmote.o hid.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"
|
|
|