1
0
Разклонения 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wii-u-gc-adapter/Makefile

28 lines
536 B
Makefile

CFLAGS += -Wall -Wextra -pedantic -Wno-format -std=c99 $(shell pkg-config --cflags libusb-1.0) $(shell pkg-config --cflags udev)
LDFLAGS += -lpthread -ludev $(shell pkg-config --libs libusb-1.0) $(shell pkg-config --libs udev)
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
LDFLAGS += -g
else
CFLAGS += -O2
LDFLAGS += -s
endif
TARGET = wii-u-gc-adapter
OBJS = wii-u-gc-adapter.o
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
all: $(TARGET)
clean:
rm -f $(TARGET)
rm -f $(OBJS)
.PHONY: all clean