mirror of
https://github.com/FunKey-Project/FunKey-GPIO-Mapping.git
synced 2026-03-19 10:22:51 +01:00
added i2c and uinput linux headers for compilation
This commit is contained in:
40
Makefile
40
Makefile
@@ -1,21 +1,19 @@
|
||||
TOOLS_CFLAGS := -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
|
||||
-Wcast-align -Wwrite-strings -Wnested-externs -Winline \
|
||||
-W -Wundef -Wmissing-prototypes
|
||||
#
|
||||
# Programs
|
||||
#
|
||||
all: funkey_gpio_management
|
||||
|
||||
funkey_gpio_management: funkey_gpio_management.o gpio-utils.o uinput.o gpio_mapping.o read_conf_file.o keydefs.o driver_pcal6416a.o
|
||||
$(CC) $(LDFLAGS) -o $@ $^
|
||||
|
||||
|
||||
#
|
||||
# Objects
|
||||
#
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) $(TOOLS_CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm *.o funkey_gpio_management
|
||||
TOOLS_CFLAGS := -Wall -std=c99 -D _DEFAULT_SOURCE
|
||||
#
|
||||
# Programs
|
||||
#
|
||||
all: funkey_gpio_management
|
||||
|
||||
funkey_gpio_management: funkey_gpio_management.o gpio-utils.o uinput.o gpio_mapping.o read_conf_file.o keydefs.o driver_pcal6416a.o smbus.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
||||
|
||||
|
||||
#
|
||||
# Objects
|
||||
#
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) $(TOOLS_CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm *.o funkey_gpio_management
|
||||
|
||||
Reference in New Issue
Block a user