1998-05-21 08:31:14 -04:00
|
|
|
#
|
|
|
|
# File: makefile.unx
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
1998-08-22 15:46:35 -04:00
|
|
|
# Makefile for dynamic example (UNIX).
|
1998-05-21 08:31:14 -04:00
|
|
|
|
|
|
|
WXDIR = ../..
|
|
|
|
|
|
|
|
# All common UNIX compiler flags and options are now in
|
|
|
|
# this central makefile.
|
|
|
|
include $(WXDIR)/src/makeg95.env
|
|
|
|
|
1998-08-22 15:46:35 -04:00
|
|
|
OBJECTS = $(OBJDIR)/dynamic.$(OBJSUFF) $(OBJDIR)/dynamic_resources.$(OBJSUFF)
|
1998-05-21 08:31:14 -04:00
|
|
|
|
1998-08-22 15:46:35 -04:00
|
|
|
all: $(OBJDIR) dynamic$(GUISUFFIX)$(EXESUFF)
|
1998-05-21 08:31:14 -04:00
|
|
|
|
|
|
|
wx:
|
|
|
|
|
|
|
|
$(OBJDIR):
|
|
|
|
mkdir $(OBJDIR)
|
|
|
|
|
1998-08-22 15:46:35 -04:00
|
|
|
dynamic$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
|
|
|
|
$(CC) $(LDFLAGS) -o dynamic$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
|
1998-05-21 08:31:14 -04:00
|
|
|
|
1998-08-22 15:46:35 -04:00
|
|
|
$(OBJDIR)/dynamic.$(OBJSUFF): dynamic.$(SRCSUFF)
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ dynamic.$(SRCSUFF)
|
1998-05-21 08:31:14 -04:00
|
|
|
|
1998-08-22 15:46:35 -04:00
|
|
|
$(OBJDIR)/dynamic_resources.o: dynamic.rc
|
|
|
|
$(RESCOMP) -i dynamic.rc -o $(OBJDIR)/dynamic_resources.o $(RESFLAGS)
|
1998-05-21 08:31:14 -04:00
|
|
|
|
|
|
|
clean:
|
1998-08-22 15:46:35 -04:00
|
|
|
rm -f $(OBJECTS) dynamic$(GUISUFFIX).exe core *.rsc *.res
|