first commit

This commit is contained in:
Michel-FK
2021-04-03 23:13:40 +02:00
commit 35c5664cc3
28 changed files with 4536 additions and 0 deletions

21
Makefile Executable file
View File

@@ -0,0 +1,21 @@
TOOLS_CFLAGS := -Wall -std=c99 -D _DEFAULT_SOURCE
#
# Programs
#
all: fkgpiod termfix
fkgpiod: main.o daemon.o to_log.o parse_config.o mapping_list.o gpio_mapping.o gpio_utils.o gpio_axp209.o gpio_pcal6416a.o smbus.o uinput.o keydefs.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
termfix: termfix.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
#
# Objects
#
%.o: %.c
$(CC) $(CFLAGS) $(TOOLS_CFLAGS) -c $< -o $@
clean:
rm -f *.o fkgpiod termfix