]>
Commit | Line | Data |
---|---|---|
fe71f65c RR |
1 | # |
2 | # File: makefile.unx | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
b6a158b0 | 10 | # Makefile for dynamic example (UNIX). |
fe71f65c RR |
11 | |
12 | WXDIR = ../.. | |
13 | ||
14 | # All common UNIX compiler flags and options are now in | |
15 | # this central makefile. | |
16 | include $(WXDIR)/src/makeg95.env | |
17 | ||
b6a158b0 | 18 | OBJECTS = $(OBJDIR)/dynamic.$(OBJSUFF) $(OBJDIR)/dynamic_resources.$(OBJSUFF) |
fe71f65c | 19 | |
b6a158b0 | 20 | all: $(OBJDIR) dynamic$(GUISUFFIX)$(EXESUFF) |
fe71f65c RR |
21 | |
22 | wx: | |
23 | ||
24 | $(OBJDIR): | |
25 | mkdir $(OBJDIR) | |
26 | ||
b6a158b0 JS |
27 | dynamic$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) |
28 | $(CC) $(LDFLAGS) -o dynamic$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS) | |
fe71f65c | 29 | |
b6a158b0 JS |
30 | $(OBJDIR)/dynamic.$(OBJSUFF): dynamic.$(SRCSUFF) |
31 | $(CC) -c $(CPPFLAGS) -o $@ dynamic.$(SRCSUFF) | |
fe71f65c | 32 | |
b6a158b0 JS |
33 | $(OBJDIR)/dynamic_resources.o: dynamic.rc |
34 | $(RESCOMP) -i dynamic.rc -o $(OBJDIR)/dynamic_resources.o $(RESFLAGS) | |
fe71f65c RR |
35 | |
36 | clean: | |
b6a158b0 | 37 | rm -f $(OBJECTS) dynamic$(GUISUFFIX).exe core *.rsc *.res |