blob: 3749b95add6a8190e464d2200a3702852ed19ee7 [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
13INCLUDES = -I. -I../vboxsf
14CFLAGS = ${INCLUDES}
15LDFLAGS =
16
17SRCS = mount.vboxsf.c \
18 vbsfmount.c
19
20OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS)))
21
22.SUFFIXES: .c .o .i .s .S
23
24
25all: mount.vboxsf
26
27clean:
28 -rm -f *.o mount.vboxsf
29
30spotless: clean
31 -rm -f *~
32
33mount.vboxsf: $(OBJS)
34 $(CC) $(LDFLAGS) -o $@ $^
35
36%.o: %.c
37 $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
38%.i: %.c
39 $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
40%.s: %.c
41 $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
42
43-include .*.d *.tmp