]>
Commit | Line | Data |
---|---|---|
58580a7e JS |
1 | # Purpose: makefile for multicell example (TWIN) |
2 | # Created 2000-07-28 | |
3 | ||
4 | WXDIR = ../.. | |
5 | ||
6 | # All common UNIX compiler flags and options are now in | |
7 | # this central makefile. | |
8 | include $(WXDIR)/src/maketwin.env | |
9 | ||
10 | OBJECTS = $(OBJDIR)/mtest.$(OBJSUFF) $(OBJDIR)/multicell.$(OBJSUFF) | |
11 | EXTRAINC=-I../include | |
12 | ||
13 | all: $(OBJDIR) mtest$(GUISUFFIX)$(EXESUFF) | |
14 | ||
15 | wx: | |
16 | ||
17 | $(OBJDIR): | |
18 | mkdir $(OBJDIR) | |
19 | ||
20 | mtest$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) | |
21 | $(CC) $(LDFLAGS) -o mtest$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS) | |
22 | ||
23 | $(OBJDIR)/mtest.$(OBJSUFF): mtest.$(SRCSUFF) | |
24 | $(CC) -c $(CPPFLAGS) -o $@ mtest.$(SRCSUFF) | |
25 | ||
26 | $(OBJDIR)/multicell.$(OBJSUFF): multicell.$(SRCSUFF) | |
27 | $(CC) -c $(CPPFLAGS) -o $@ multicell.$(SRCSUFF) | |
28 | ||
29 | mtest.c: mtest.rc | |
30 | $(RESCOMP) $(RCINPUTSWITCH) mtest.rc $(RCOUTPUTSWITCH) mtest.c $(RESFLAGS) | |
31 | ||
32 | $(OBJDIR)/mtest.$(OBJSUFF): mtest.c | |
33 | $(CC) -c $(CPPFLAGS) -o $@ mtest.c | |
34 | ||
35 | #$(OBJDIR)/mtest.o: mtest.rc | |
36 | # $(RESCOMP) $(RCINPUTSWITCH) mtest.rc $(RCOUTPUTSWITCH) $(OBJDIR)/mtest.o $(RESFLAGS) | |
37 | ||
38 | clean: | |
39 | rm -f $(OBJECTS) mtest$(GUISUFFIX).exe core *.rsc *.res |