blob: 5982e2d08c8cb7e258c39b9159694c7cf47ed313 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001## -----------------------------------------------------------------------
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
Patrick Williamsddad1a12017-02-23 20:36:32 -060013INCLUDES = -I. -I../vboxsf -I../vboxsf/include
14MOD_DEFS = -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 \
15 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST_R0
Andrew Geisslereff27472021-10-29 15:35:00 -050016CFLAGS = ${INCLUDES} ${MOD_DEFS} ${EXTRA_CFLAGS}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017LDFLAGS =
18
19SRCS = mount.vboxsf.c \
20 vbsfmount.c
21
22OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS)))
23
24.SUFFIXES: .c .o .i .s .S
25
26
27all: mount.vboxsf
28
29clean:
30 -rm -f *.o mount.vboxsf
31
32spotless: clean
33 -rm -f *~
34
35mount.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