Tool for using the Wii U GameCube Adapter on Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
536 B

  1. CFLAGS += -Wall -Wextra -pedantic -Wno-format -std=c99 $(shell pkg-config --cflags libusb-1.0) $(shell pkg-config --cflags udev)
  2. LDFLAGS += -lpthread -ludev $(shell pkg-config --libs libusb-1.0) $(shell pkg-config --libs udev)
  3. ifeq ($(DEBUG), 1)
  4. CFLAGS += -O0 -g
  5. LDFLAGS += -g
  6. else
  7. CFLAGS += -O2
  8. LDFLAGS += -s
  9. endif
  10. TARGET = wii-u-gc-adapter
  11. OBJS = wii-u-gc-adapter.o
  12. %.o: %.c
  13. $(CC) -c -o $@ $< $(CFLAGS)
  14. $(TARGET): $(OBJS)
  15. $(CC) -o $@ $^ $(LDFLAGS)
  16. all: $(TARGET)
  17. clean:
  18. rm -f $(TARGET)
  19. rm -f $(OBJS)
  20. .PHONY: all clean