Fixes for compiling on 64bit and outside the source dir
[AROS.git] / tools / FlexCat / Makefile
blobd51250d5dfbccec91a7f8013ab392f8f1a9418e7
1 # Copyright © 1995-2001, The AROS Development Team. All rights reserved.
2 # $Id$
4 # Desc: Makefile for FlexCat
7 # Things of interest.
8 SRC := flexcat.c
9 SDFILES := C_c_orig.sd C_h_orig.sd gcccatcomp.sd
11 include $(TOP)/config/make.cfg
13 USER_CFLAGS := -Wunused -O3
14 SD_OUT := $(foreach f,$(SDFILES),$(TOOLDIR)/$(f))
16 all : $(FLEXCAT) $(SD_OUT) $(TOOLDIR)/gcccatcomp.sh
18 $(FLEXCAT) : flexcat.c
19 @$(MECHO) "Compiling $(notdir $@)..."
20 @$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $< -o $@
21 @$(HOST_STRIP) $@
23 $(TOOLDIR)/gcccatcomp.sh: gcccatcomp.sh
24 @$(CP) $< $@
26 $(TOOLDIR)/%.sd : %.sd
27 @$(CP) $< $@
29 clean:
30 @$(RM) -f $(FLEXCAT)