2014-06-03 17:55:39 +00:00
|
|
|
LDLIBS=-pthread
|
|
|
|
LIBS=-pthread
|
|
|
|
C=clang
|
Wow! I've done A LOT of work on the netsukuku console recently! I still haven't set up any way for ntkd to receive the commands, Or done much of anything in netsukuku itself recently except change some stuff in the exclude function to prevent possible errors if an interface had the same name up until the end of the one specified. I.E if it had tunl012, It wouldn't work because it had tunl0 in the beginning. Now, It will read from the entire length of the variable, And if it doesn't match it entirely, Then it is okay.
Anyway! The netsukuku console is almost ready! I just keep getting this weird issue around fgets() not working at all in console(). It causes the program to spam the > symbol. It functions in main()! However, After that, It has a segmentation fault. I've been trying everything I can think of, One thing made it not do a segmentation fault, However! The fgets() inside of console() still didn't work, So, It just spammed endlessly. Anyone who can, Please help! I've been working on this for a while! :/
2014-06-04 10:47:49 +00:00
|
|
|
DEBUG=-g -Wfatal-errors -pedantic -Wunreachable-code -Winline -Wredundant-decls -Wno-vla
|
2014-06-03 17:55:39 +00:00
|
|
|
CFLAGS=-Wall ${DEBUG}
|
2014-06-02 07:14:19 +00:00
|
|
|
SRCBIN=Netsukuku-Console
|
|
|
|
|
|
|
|
all: ${SRCBIN}
|
|
|
|
|
|
|
|
${SRCBIN}: Netsukuku-Console.o
|
2014-06-03 17:55:39 +00:00
|
|
|
${C} ${LDFLAGS} ${LIBS} $^ -o $@
|
2014-06-02 07:14:19 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o ${SRCBIN}
|