packagegroup-agl-demo: remove python-curses
[AGL/meta-agl-demo.git] / recipes-support / vboxguestdrivers / vboxguestdrivers / Makefile.utils
1 ## -----------------------------------------------------------------------
2 ##
3 ##   Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
4 ##
5 ##   This program is free software; you can redistribute it and/or modify
6 ##   it under the terms of the GNU General Public License as published by
7 ##   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 ##   Boston MA 02111-1307, USA; either version 2 of the License, or
9 ##   (at your option) any later version; incorporated herein by reference.
10 ##
11 ## -----------------------------------------------------------------------
12
13 INCLUDES = -I. -I../vboxsf -I../vboxsf/include
14 MOD_DEFS = -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 \
15            -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST_R0
16 CFLAGS   = ${INCLUDES} ${MOD_DEFS}
17 LDFLAGS  =
18
19 SRCS     = mount.vboxsf.c \
20            vbsfmount.c
21
22 OBJS     = $(patsubst %.c,%.o,$(notdir $(SRCS)))
23
24 .SUFFIXES: .c .o .i .s .S
25
26
27 all: mount.vboxsf
28
29 clean:
30         -rm -f *.o mount.vboxsf
31
32 spotless: clean
33         -rm -f *~
34
35 mount.vboxsf: $(OBJS)
36         $(CC) $(LDFLAGS) -o $@ $^
37
38 %.o: %.c
39         $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
40 %.i: %.c
41         $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
42 %.s: %.c
43         $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
44
45 -include .*.d *.tmp