mirror of
https://github.com/FunKey-Project/FunKey-GPIO-Mapping.git
synced 2025-12-12 09:48:51 +01:00
22 lines
462 B
Makefile
Executable File
22 lines
462 B
Makefile
Executable File
TOOLS_CFLAGS := -Wall -std=c99 -D _DEFAULT_SOURCE
|
|
#
|
|
# Programs
|
|
#
|
|
all: funkey_gpio_management termfix
|
|
|
|
funkey_gpio_management: funkey_gpio_management.o gpio-utils.o uinput.o gpio_mapping.o read_conf_file.o keydefs.o driver_pcal6416a.o driver_axp209.o smbus.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
|
termfix: termfix.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
|
#
|
|
# Objects
|
|
#
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $(TOOLS_CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm *.o funkey_gpio_management
|