2002-03-12 07:22:02 -05:00
|
|
|
# Purpose: makefile for treetest example (TWIN)
|
2000-03-14 13:37:46 -05:00
|
|
|
# Created: 2000-03-15
|
|
|
|
|
|
|
|
WXDIR = ../..
|
|
|
|
|
|
|
|
# All common UNIX compiler flags and options are now in
|
|
|
|
# this central makefile.
|
|
|
|
include $(WXDIR)/src/maketwin.env
|
|
|
|
|
2002-03-12 07:22:02 -05:00
|
|
|
OBJECTS = $(OBJDIR)/treetest.$(OBJSUFF) $(OBJDIR)/treetest.$(OBJSUFF)
|
2000-03-14 13:37:46 -05:00
|
|
|
|
2002-03-12 07:22:02 -05:00
|
|
|
all: $(OBJDIR) treetest$(GUISUFFIX)$(EXESUFF)
|
2000-03-14 13:37:46 -05:00
|
|
|
|
|
|
|
wx:
|
|
|
|
|
|
|
|
$(OBJDIR):
|
|
|
|
mkdir $(OBJDIR)
|
|
|
|
|
2002-03-12 07:22:02 -05:00
|
|
|
treetest$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
|
|
|
|
$(CC) $(LDFLAGS) -o treetest$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
|
2000-03-14 13:37:46 -05:00
|
|
|
|
2002-03-12 07:22:02 -05:00
|
|
|
$(OBJDIR)/treetest.$(OBJSUFF): treetest.$(SRCSUFF)
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ treetest.$(SRCSUFF)
|
2000-03-14 13:37:46 -05:00
|
|
|
|
2002-03-12 07:22:02 -05:00
|
|
|
treetest.c: treetest.rc
|
|
|
|
$(RESCOMP) $(RCINPUTSWITCH) treetest.rc $(RCOUTPUTSWITCH) treetest.c $(RESFLAGS)
|
2000-03-14 13:37:46 -05:00
|
|
|
|
2002-03-12 07:22:02 -05:00
|
|
|
$(OBJDIR)/treetest.$(OBJSUFF): treetest.c
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ treetest.c
|
2000-03-14 13:37:46 -05:00
|
|
|
|
2002-03-12 07:22:02 -05:00
|
|
|
#$(OBJDIR)/treetest.o: treetest.rc
|
|
|
|
# $(RESCOMP) $(RCINPUTSWITCH) treetest.rc $(RCOUTPUTSWITCH) $(OBJDIR)/treetest.o $(RESFLAGS)
|
2000-03-14 13:37:46 -05:00
|
|
|
|
|
|
|
clean:
|
2002-03-12 07:22:02 -05:00
|
|
|
rm -f $(OBJECTS) treetest$(GUISUFFIX).exe core *.rsc *.res
|