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