source: branches/help/GL/glpng/Makefile

Last change on this file was 13443, checked in by westram, 10 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 840 bytes
Line 
1# for variables passed from parent makefile see ../../SOURCE_TOOLS/parent_make.txt
2
3.SUFFIXES: .o .c .depend
4
5C_OBJECTS = glpng.o
6
7$(MAIN): $(C_OBJECTS)
8        $(LINK_STATIC_LIB) $(MAIN) $(C_OBJECTS)
9
10.c.o:
11        $(A_CC) $(cflags) -c $< $(CC_INCLUDES) $(POST_COMPILE) $<
12
13clean:
14        rm -f $(C_OBJECTS) *.a
15
16DEPENDS = $(C_OBJECTS:.o=.depend)
17depends: $(DEPENDS)
18        @cat $(DEPENDS) | grep -v '^#' >>Makefile
19        @rm $(DEPENDS)
20$(DEPENDS): depend.init
21depend.init:
22        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
23.c.depend:
24        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
25.cxx.depend:
26        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
27
28# DO NOT DELETE
29
30# Do not add dependencies manually - use 'make depend' in $ARBHOME
31# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from GL)
32
33glpng.o: $(ARBHOME)/INCLUDE/GL/glpng.h
Note: See TracBrowser for help on using the repository browser.