Initial commit for SIA HS Daemon.

This commit is contained in:
Wilco Baan Hofman 2012-07-28 21:44:09 +02:00
commit 9d49055b90
10 changed files with 2478 additions and 0 deletions

38
Makefile Normal file
View file

@ -0,0 +1,38 @@
CC := gcc
# Enable for debug
CFLAGS := -g -ggdb -std=c99 -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wstrict-prototypes -Werror
INCLUDES := -I.
siahsd_LIB := -ltalloc
siahsd_OBJ := sia.o siahsd.o
OBJ := $(siahsd_OBJ)
binaries := siahsd
all: $(binaries)
clean:
rm -f $(binaries)
rm -f $(OBJ)
rm -f $(OBJ:.o=.d)
distclean: clean
rm -f tags
siahsd: $(siahsd_OBJ)
@echo Linking $@
@$(CC) $(siahsd_OBJ) $(siahsd_LIB) -o siahsd
ctags:
ctags `find -name \*.[ch]`
%.o: %.c
@echo Compiling $*.c
@$(CC) -c $(CFLAGS) $(INCLUDES) -o $*.o $<
@$(CC) -MM $(CFLAGS) -MT $*.o $(INCLUDES) -o $*.d $<
-include $(OBJ:.o=.d)