]> git.mxchange.org Git - flightgear.git/blob - Simulator/commonrules
Merged in make system changes from Bob Kuehne <rpk@sgi.com>
[flightgear.git] / Simulator / commonrules
1 # emacs make tag: -*- Mode: Makefile -*-
2
3 default: $(TARGETS)
4
5 .SUFFIXES: .d .cxx .c .o
6
7 $(ARLIBRARY): $(OBJECTS)
8         $(AR) rv $(ARLIBRARY) $(OBJECTS)
9         $(RANLIB) $(ARLIBRARY)
10         echo $(VPATH)
11         $(MV) $(ARLIBRARY) $(FG_ROOT_LIB)
12
13 $(LDLIBTARGET): $(OBJECTS)
14         $(LD) -o $(LDLIBRARY) $(LDFLAGS) $(OBJECTS)
15         $(MV) $(LDLIBRARY) $(LDLIBTARGET)
16
17 depend: $(DEPENDS)
18         cat $(DEPENDS) > $(MAKEDEPENDFILE)
19
20 .cxx.d:
21         $(CPP) $(CPPFLAGS) $(CPPDEFS) -c $< -MD
22
23 .cxx.o:
24         $(CPP) $(CPPFLAGS) $(CPPDEFS) -c $<
25
26 .c.d:
27         $(CC) $(CFLAGS) $(CDEFS) -c $< -MD
28
29 .c.o:
30         $(CC) $(CFLAGS) $(CDEFS) -c $<
31
32 clean:
33         rm -f $(OBJECTS) $(TARGET) $(DIRT)
34
35 clobber: clean
36         rm -f *.d *.o *.a *.os2 *~ core $(MAKEDEPENDFILE)
37
38 #include $(MAKEDEPENDFILE)
39
40