source: branches/port5/GDE/AxML/Makefile

Last change on this file was 5896, checked in by westram, 16 years ago
  • removed undefined variable
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1# Makefile February 2002 by Alexandros P. Stamatakis
2
3.SUFFIXES: .o .c .h .depend
4
5OBJECTS = axml.o
6RM         = rm -f
7
8# ----------------------------------------
9# normal compilation:
10ifndef ARB
11
12CC              = gcc
13CFLAGS  = -O3
14TARGET  = axml
15MAIN    = $(EXE)
16#-xO5
17# -pg
18LDFLAGS = -lm
19
20# ----------------------------------------
21# compile for ARB:
22else
23
24CC      = $(ACC)
25TARGET  = $(ARBHOME)/bin/axml
26LDFLAGS = -lm
27CFLAGS  = $(cflags)
28
29$(MAIN) : all
30
31endif
32
33all : $(TARGET)
34
35$(TARGET) : $(OBJECTS)
36        $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
37
38.c.o:
39        $(CC) $(CFLAGS) -c -o $@ $<
40
41clean :
42        $(RM) $(OBJECTS) $(TARGET)
43
44DEPENDS = $(OBJECTS:.o=.depend)
45depends: $(DEPENDS)
46        @cat $(DEPENDS) | grep -v '^#' >>Makefile
47        @rm $(DEPENDS)
48$(DEPENDS): depend.init
49depend.init:
50        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
51.c.depend:
52        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
53
54# DO NOT DELETE
55
56# Do not add dependencies manually - use 'make depend' in $ARBHOME
57# For formatting issues see SOURCE_TOOLS/fix_depends.pl
58
59axml.o: axml.h
Note: See TracBrowser for help on using the repository browser.