]>
Commit | Line | Data |
---|---|---|
e8482f24 GL |
1 | # |
2 | # File: makefile.unx | |
3 | # Author: Julian Smart | |
4 | # Created: 1998 | |
5 | # Updated: | |
6 | # Copyright: (c) 1998 Julian Smart | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile for minimal example (UNIX). | |
11 | ||
12 | top_srcdir = @top_srcdir@/.. | |
13 | top_builddir = ../../.. | |
14 | program_dir = contrib/samples/mmedia | |
15 | ||
16 | PROGRAM=mmboard | |
17 | ||
18 | OBJECTS=mmboard.o mmbman.o | |
19 | ||
7b28757f | 20 | EXTRA_LIBS= $(top_builddir)/contrib/lib/libmmedia.a @ESD_LIBS@ |
e8482f24 GL |
21 | # the comment at the end of the next line is needed because otherwise autoconf |
22 | # would remove this line completely - it contains a built-in hack to remove | |
23 | # any VPATH assignment not containing ':' | |
24 | VPATH = @PATH_IFS@$(top_srcdir)/contrib/samples/mmedia # ':' for autoconf | |
25 | ||
26 | include ../../../src/make.env | |
27 | ||
28 | .SUFFIXES: .o .cpp .c | |
29 | ||
30 | .cpp.o: | |
31 | $(CC) -c $(CPPFLAGS) $(EXTRA_CPPFLAGS) -o $@ $< | |
32 | ||
33 | all: $(PROGRAM) | |
34 | ||
7b28757f JS |
35 | clean: |
36 | rm -f *.o $(PROGRAM) | |
37 | ||
e8482f24 GL |
38 | mmboard: $(OBJECTS) |
39 | $(CC) $(LDFLAGS) -o mmboard $(OBJECTS) $(EXTRA_LIBS) $(LDLIBS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ |