Home | History | Annotate | Download | only in query_module
      1 #
      2 # Copyright (c) Wipro Technologies Ltd, 2002.  All Rights Reserved.
      3 #
      4 # This program is free software; you can redistribute it and/or modify it
      5 # under the terms of version 2 of the GNU General Public License as
      6 # published by the Free Software Foundation.
      7 #
      8 # This program is distributed in the hope that it would be useful, but
      9 # WITHOUT ANY WARRANTY; without even the implied warranty of
     10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     11 #
     12 # You should have received a copy of the GNU General Public License along
     13 # with this program; if not, write the Free Software Foundation, Inc.,
     14 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
     15 #
     16 ###########################################################################
     17 # name of file	: Makefile						  #
     18 # description	: make file for the query_module(2) testcases		  #
     19 ###########################################################################
     20 
     21 CFLAGS+=	-I../../../../include -Wall
     22 MODCFLAGS+=	-I/lib/modules/$(shell uname -r)/build/include -Wall
     23 LOADLIBES+=	-L../../../../lib -lltp
     24 
     25 SRC1=dummy_query_mod.c dummy_query_mod_dep.c
     26 OBJS=$(SRC1:.c=.o)
     27 TARGETS=query_module01 query_module02 query_module03 $(OBJS)
     28 
     29 all: $(TARGETS)
     30 	chmod 755 $(OBJS)
     31 
     32 $(OBJS): $(SRC1)
     33 	$(CC) -DEXPORT_SYMTAB $(MODCFLAGS) -c $(SRC1) -Wall
     34 
     35 query_module01: query_module01.c
     36 	$(CC) $(CFLAGS) query_module01.c $(LOADLIBES) -o $@
     37 
     38 query_module02: query_module02.c
     39 	$(CC) $(CFLAGS) query_module02.c $(LOADLIBES) -o $@
     40 
     41 query_module03: query_module03.c
     42 	$(CC) $(CFLAGS) query_module03.c $(LOADLIBES) -o $@
     43 
     44 install:
     45 	@set -e; for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done
     46 
     47 clean:
     48 	rm -f $(TARGETS)
     49 
     50