1 # Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 SRC := createdtdesc.c examinedtdesc.c
8 -include $(TOP)/config/make.cfg
10 # These are the compatibility variables. They will only be defined
11 # if including $(TOP)/config/make.cfg fails (since they will then
15 HOST_CFLAGS ?= -Wall -g -O
17 ifneq ($(HOSTGENDIR),)
18 OBJDIR := $(HOSTGENDIR)/$(subst $(SRCDIR)/,,$(CURDIR))
19 CIFFSRCDIR := $(SRCDIR)/tools/dtdesc/c_iff
20 CIFFLIBDIR := $(TOOLDIR)
22 OBJDIR := $(TOOLDIR)/obj
23 CIFFSRCDIR := $(TOOLDIR)/c_iff
24 CIFFLIBDIR := $(TOOLDIR)/c_iff
28 INCL := -I. -I $(CIFFSRCDIR)
34 CREATEDTDESC ?= $(TOOLDIR)/createdtdesc
36 all: $(OBJDIR) $(CREATEDTDESC) $(TOOLDIR)/examinedtdesc
38 $(CREATEDTDESC): $(OBJDIR)/createdtdesc.o $(CIFFLIBDIR)/libc_iff.a
39 @$(HOST_CC) $(HOST_LDFLAGS) -o $(CREATEDTDESC) $(OBJDIR)/createdtdesc.o -L$(CIFFLIBDIR)/ -lc_iff
41 $(TOOLDIR)/examinedtdesc: $(OBJDIR)/examinedtdesc.o $(CIFFLIBDIR)/libc_iff.a
42 @$(HOST_CC) -o $(TOOLDIR)/examinedtdesc $(OBJDIR)/examinedtdesc.o -L$(CIFFLIBDIR)/ -lc_iff
45 @$(HOST_CC) $(HOST_CFLAGS) $(INCL) -c $< -o $@
47 $(CIFFLIBDIR)/libc_iff.a:
48 @$(ECHO) Building libc_iff.a...
49 @$(CALL) $(MAKE) $(MKARGS) -C $(CIFFSRCDIR) -f Makefile.aros SRCDIR=$(SRCDIR) TOP=$(TOP)
55 @$(MAKE) $(MKARGS) -C $(CIFFSRCDIR) -f Makefile.aros SRCDIR=$(SRCDIR) TOP=$(TOP) clean
56 @$(RM) -f *.o examinedtdesc $(CREATEDTDESC) $(OBJDIR)