2006-01-22 21:30:32 +00:00
|
|
|
all: $(OUTPUT)
|
|
|
|
|
|
|
|
dep: $(DEPFILE)
|
|
|
|
|
|
|
|
ifndef V
|
|
|
|
SILENT=@
|
|
|
|
endif
|
2006-10-27 21:48:06 +00:00
|
|
|
PRINTS=$(info $(1))$(SILENT)
|
2006-01-22 21:30:32 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/%.c: %.bmp
|
2006-10-22 00:21:57 +00:00
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
2006-02-21 02:10:50 +00:00
|
|
|
$(SILENT)mkdir -p $(BMPINCDIR)
|
2006-10-27 21:48:06 +00:00
|
|
|
$(call PRINTS,BMP2RB $<)$(BMP2RB) -h $(BMPINCDIR) $< > $@
|
2006-01-22 21:30:32 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/%.o: $(OBJDIR)/%.c
|
2006-10-22 00:21:57 +00:00
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
2006-10-27 21:48:06 +00:00
|
|
|
$(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -c $< -o $@
|
2006-01-22 21:30:32 +00:00
|
|
|
|
|
|
|
$(DEPFILE): SOURCES
|
2006-10-22 00:21:57 +00:00
|
|
|
$(SILENT)mkdir -p $(dir $(DEPFILE))
|
2006-01-22 21:30:32 +00:00
|
|
|
$(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)
|
2006-10-27 21:48:06 +00:00
|
|
|
$(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $+ >/dev/null 2>&1
|
|
|
|
$(SILENT)$(RANLIB) $@
|