Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 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 |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 16 | CFLAGS = ${INCLUDES} ${MOD_DEFS} ${EXTRA_CFLAGS} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 |