1999-05-27 16:38:29 -04:00
|
|
|
#
|
|
|
|
# File: makefile.unx
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
|
|
|
# Updated:
|
2003-03-29 08:48:25 -05:00
|
|
|
# Copyright:
|
1999-05-27 16:38:29 -04:00
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
|
|
|
# Makefile for drawing example (UNIX).
|
|
|
|
|
|
|
|
WXDIR = ../..
|
|
|
|
|
|
|
|
# All common UNIX compiler flags and options are now in
|
|
|
|
# this central makefile.
|
|
|
|
include $(WXDIR)/src/maketwin.env
|
|
|
|
|
|
|
|
OBJECTS = $(OBJDIR)/drawing.$(OBJSUFF) $(OBJDIR)/drawing_resources.$(OBJSUFF)
|
|
|
|
|
|
|
|
all: $(OBJDIR) drawing$(GUISUFFIX)$(EXESUFF)
|
|
|
|
|
|
|
|
wx:
|
|
|
|
|
|
|
|
$(OBJDIR):
|
|
|
|
mkdir $(OBJDIR)
|
|
|
|
|
|
|
|
drawing$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
|
|
|
|
$(CC) $(LDFLAGS) -o drawing$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
|
|
|
|
|
|
|
|
$(OBJDIR)/drawing.$(OBJSUFF): drawing.$(SRCSUFF)
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ drawing.$(SRCSUFF)
|
|
|
|
|
|
|
|
drawing_resources.c: drawing.rc
|
|
|
|
$(RESCOMP) $(RCINPUTSWITCH) drawing.rc $(RCOUTPUTSWITCH) drawing_resources.c $(RESFLAGS)
|
|
|
|
|
|
|
|
$(OBJDIR)/drawing_resources.$(OBJSUFF): drawing_resources.c
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ drawing_resources.c
|
|
|
|
|
|
|
|
#$(OBJDIR)/drawing_resources.o: drawing.rc
|
|
|
|
# $(RESCOMP) $(RCINPUTSWITCH) drawing.rc $(RCOUTPUTSWITCH) $(OBJDIR)/drawing_resources.o $(RESFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJECTS) drawing$(GUISUFFIX).exe core *.rsc *.res
|