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 | |
| 13 | INCLUDES = -I. -I../vboxsf |
| 14 | CFLAGS = ${INCLUDES} |
| 15 | LDFLAGS = |
| 16 | |
| 17 | SRCS = mount.vboxsf.c \ |
| 18 | vbsfmount.c |
| 19 | |
| 20 | OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS))) |
| 21 | |
| 22 | .SUFFIXES: .c .o .i .s .S |
| 23 | |
| 24 | |
| 25 | all: mount.vboxsf |
| 26 | |
| 27 | clean: |
| 28 | -rm -f *.o mount.vboxsf |
| 29 | |
| 30 | spotless: clean |
| 31 | -rm -f *~ |
| 32 | |
| 33 | mount.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 |