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