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.
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
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
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
58 @echo
-e
"\t\t[$(CPP)]\thydra/$*.cpp"
59 @
$(CPP
) $(CPPFLAGS
) -c
$*.
cpp -o
$*.o
61 ifeq ($(MAKECMDGOALS
),)
66 @echo
-e
"\t\t[rm]\thydra"
67 @
rm -f
*.o
*.ko
$(POSIX
) $(QUARN
)