Rev 222 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 222 | Rev 225 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | asmfiles := $(foreach dir,$(DIRS),$(patsubst %.asm, %.o, $(wildcard $(dir)/*.asm))) |
9 | asmfiles := $(foreach dir,$(DIRS),$(patsubst %.asm, %.o, $(wildcard $(dir)/*.asm))) |
10 | cfiles := $(foreach dir,$(DIRS),$(patsubst %.c, %.o, $(wildcard $(dir)/*.c))) |
10 | cfiles := $(foreach dir,$(DIRS),$(patsubst %.c, %.o, $(wildcard $(dir)/*.c))) |
Line 11... | Line 11... | ||
11 | 11 | ||
Line -... | Line 12... | ||
- | 12 | .PHONY: clean all |
|
- | 13 | ||
- | 14 | ifdef windir |
|
- | 15 | doClean = del /F /Q $(subst /,\,$(cfiles)) $(subst /,\,$(asmfiles)) |
|
- | 16 | else |
|
- | 17 | doClean = rm $(cfiles) $(asmfiles) |
|
12 | .PHONY: clean all |
18 | endif |
13 | 19 | ||
Line 14... | Line 20... | ||
14 | all: $(cfiles) $(asmfiles) |
20 | all: $(cfiles) $(asmfiles) |
Line 15... | Line 21... | ||
15 | ar -ru $(LIBNAME) $^ |
21 | ar -ru $(LIBNAME) $^ |
16 | 22 | ||
Line 17... | Line 23... | ||
17 | $(cfiles): $(INCLUDE)/*.h |
23 | $(cfiles): $(INCLUDE)/*.h |
18 | 24 |