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