| Line 38... |
Line 38... |
| 38 |
@-mkdir -p $$(dir $$@)
|
38 |
@-mkdir -p $$(dir $$@)
|
| 39 |
endif
|
39 |
endif
|
| 40 |
$(CC) -c $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) -o $$@ $$<
|
40 |
$(CC) -c $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) -o $$@ $$<
|
| 41 |
@$(CC) -MM $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) $$< > $$@.dep.tmp
|
41 |
@$(CC) -MM $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) $$< > $$@.dep.tmp
|
| 42 |
@sed -e "s|.*:|$$@:|" < $$@.dep.tmp > $$@.dep
|
42 |
@sed -e "s|.*:|$$@:|" < $$@.dep.tmp > $$@.dep
|
| 43 |
sed -e "s/.*://" -e "s/\\$$$$//" < $$@.dep.tmp | fmt -1 | sed -e "s/^ *//" -e "s/$$$$/:/" >> $$@.dep
|
43 |
@sed -e "s/.*://" -e "s/\\$$$$//" < $$@.dep.tmp | fmt -1 | sed -e "s/^ *//" -e "s/$$$$/:/" >> $$@.dep
|
| 44 |
@rm -f $$@.dep.tmp
|
44 |
@rm -f $$@.dep.tmp
|
| 45 |
|
45 |
|
| 46 |
build/$(1)/%.o: %.S
|
46 |
build/$(1)/%.o: %.S
|
| 47 |
ifeq ($(shell uname),WindowsNT)
|
47 |
ifeq ($(shell uname),WindowsNT)
|
| 48 |
@-if not exist $$(subst /,\,$$(dir $$@)) md $$(subst /,\,$$(dir $$@))
|
48 |
@-if not exist $$(subst /,\,$$(dir $$@)) md $$(subst /,\,$$(dir $$@))
|
| Line 50... |
Line 50... |
| 50 |
@-mkdir -p $$(dir $$@)
|
50 |
@-mkdir -p $$(dir $$@)
|
| 51 |
endif
|
51 |
endif
|
| 52 |
$(CC) -c $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) -o $$@ $$<
|
52 |
$(CC) -c $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) -o $$@ $$<
|
| 53 |
@$(CC) -MM $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) $$< > $$@.dep.tmp
|
53 |
@$(CC) -MM $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) $$< > $$@.dep.tmp
|
| 54 |
@sed -e "s|.*:|$$@:|" < $$@.dep.tmp > $$@.dep
|
54 |
@sed -e "s|.*:|$$@:|" < $$@.dep.tmp > $$@.dep
|
| 55 |
sed -e "s/.*://" -e "s/\\$$$$//" < $$@.dep.tmp | fmt -1 | sed -e "s/^ *//" -e "s/$$$$/:/" >> $$@.dep
|
55 |
@sed -e "s/.*://" -e "s/\\$$$$//" < $$@.dep.tmp | fmt -1 | sed -e "s/^ *//" -e "s/$$$$/:/" >> $$@.dep
|
| 56 |
@rm -f $$@.dep.tmp
|
56 |
@rm -f $$@.dep.tmp
|
| 57 |
endef
|
57 |
endef
|
| 58 |
|
58 |
|
| 59 |
all: $(TARGETS)
|
59 |
all: $(TARGETS)
|
| 60 |
|
60 |
|