home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wxos2233.zip
/
wxOS2-2_3_3.zip
/
wxWindows-2.3.3
/
utils
/
makegen
/
templates
/
makefile.twn
< prev
next >
Wrap
Makefile
|
2000-01-03
|
937b
|
36 lines
# Purpose: makefile for #NAME example (TWIN)
# Created: #DATE
WXDIR = ../..
# All common UNIX compiler flags and options are now in
# this central makefile.
include $(WXDIR)/src/maketwin.env
OBJECTS = $(OBJDIR)/#NAME.$(OBJSUFF) $(OBJDIR)/#NAME.$(OBJSUFF)
all: $(OBJDIR) #NAME$(GUISUFFIX)$(EXESUFF)
wx:
$(OBJDIR):
mkdir $(OBJDIR)
#NAME$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
$(CC) $(LDFLAGS) -o #NAME$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
$(OBJDIR)/#NAME.$(OBJSUFF): #NAME.$(SRCSUFF)
$(CC) -c $(CPPFLAGS) -o $@ #NAME.$(SRCSUFF)
#NAME.c: #NAME.rc
$(RESCOMP) $(RCINPUTSWITCH) #NAME.rc $(RCOUTPUTSWITCH) #NAME.c $(RESFLAGS)
$(OBJDIR)/#NAME.$(OBJSUFF): #NAME.c
$(CC) -c $(CPPFLAGS) -o $@ #NAME.c
#$(OBJDIR)/#NAME.o: #NAME.rc
# $(RESCOMP) $(RCINPUTSWITCH) #NAME.rc $(RCOUTPUTSWITCH) $(OBJDIR)/#NAME.o $(RESFLAGS)
clean:
rm -f $(OBJECTS) #NAME$(GUISUFFIX).exe core *.rsc *.res