net: minor improvements in tcp client sockets
[quarnos.git] / hydra / Makefile
blob09d8a65cceee70ac656a44ae516510f6ee7f2a1e
1 # Quarn OS
3 # Makefile for hydra
5 # Copyright (C) 2008-2009 Pawel Dziepak
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License along
18 # with this program; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 .SUFFIXES : .ko
24 MANES =
26 HYDRA = shell.ko
28 POSIX = posix/start.o posix/uapi.o posix/error.o
29 QUARN = quarn/start.o quarn/uapi.o ../modules/modules_start.o ../manes/manec.o #../manes/rtti.o
31 MODULE_LIBS = hydra.o ui.o label.o edit.o form.o io.o #$(LIBS)
32 LIBS = ../libs/string.o
34 OBJS = $(POSIX)
36 hydra: dep.d compile
39 dep.d:
40 @echo -e "\t\t[dep]\thydra"
41 @$(CPP) $(CPPFLAGS) -M *.cpp > dep.d
43 compile: $(OBJS) $(MODULE_LIBS) shell.ko
44 @g++ -I../ $(CPPFLAGS) -c shell.cpp -o shell.o
45 @#g++ -I../ $(MODULE_LIBS) $(POSIX) $(LIBS) shell.o -o shell
47 .c.o:
48 @echo -e "\t\t[$(CC)]\thydra/$*.c"
49 @$(CC) $(CFLAGS) -c $*.c -o $*.o
51 shell.ko: $(QUARN) $(MODULE_LIBS)
52 @echo -e "\t\t[$(CPP)] M\thydra/$*.cpp"
53 @$(CPP) $(CPPFLAGS) -c shell.cpp -o shell.o
54 @$(CPP) $(CPPFLAGS) -shared -fpic -e start_module shell.o $(MODULE_LIBS) $(QUARN) $(LIBS) -o shell.ko
55 @#strip $shell.ko
57 .cpp.o:
58 @echo -e "\t\t[$(CPP)]\thydra/$*.cpp"
59 @$(CPP) $(CPPFLAGS) -c $*.cpp -o $*.o
61 ifeq ($(MAKECMDGOALS),)
62 -include dep.d
63 endif
65 clean:
66 @echo -e "\t\t[rm]\thydra"
67 @rm -f *.o *.ko $(POSIX) $(QUARN)
68 @rm -f dep.d
69 @rm -f shell