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