blob: e12a52b3eb5fae6d1ae1e189549062c4cd7eec48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
all: $(OUTPUT)
dep: $(DEPFILE)
ifndef V
SILENT=@
endif
$(OBJDIR)/%.c: %.bmp
$(SILENT)mkdir -p `dirname $@`
$(SILENT)mkdir -p $(BMPINCDIR)
@echo BMP2RB $<
$(SILENT)$(BMP2RB) -h $(BMPINCDIR) $< > $@
$(OBJDIR)/%.o: $(OBJDIR)/%.c
$(SILENT)mkdir -p `dirname $@`
@echo CC `basename $<`
$(SILENT)$(CC) $(CFLAGS) -c $< -o $@
$(DEPFILE): SOURCES
$(SILENT)mkdir -p `dirname $(DEPFILE)`
$(SILENT)rm -f $(DEPFILE)
$(SILENT)(for each in $(SOURCES) x; do \
if test "x" != "$$each"; then \
src=`echo $$each | sed -e 's/\.bmp/.c/'`; \
echo $(OBJDIR)/$$src: $$each >> $(DEPFILE) ; \
obj=`echo $$each | sed -e 's/\.bmp/.o/'`; \
echo $(OBJDIR)/$$obj: $(OBJDIR)/$$src >> $(DEPFILE) ; \
fi; \
done)
$(OUTPUT): $(OBJS)
@echo "AR+RANLIB $@"
@$(AR) ruv $@ $+ >/dev/null 2>&1
@$(RANLIB) $@
|