home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ool.zip
/
OOL
/
samples
/
sample1
/
emx.mak
next >
Wrap
Makefile
|
1997-04-03
|
1KB
|
50 lines
#Makefile generated by Object WorkFrame - MakeMake
#(c)opyright Stefan von Brauk, 1996
#target: GNU Make
#compiler: EMX/GCC
#date: 22.12.1996
#actions:
# Compile C/C++
# Compile RC
# Link OBJ
# Link DEF
# Link RES
#output: sample1.exe
#files: sample1.cpp sample1.rc sample1.obj sample1.RES sample1.DEF
#Object files/libraries to link
OBJS=sample1.obj
LIBS=$(OOL)\LIB\OOLW3E03.LIB
#Default compiler switches
CC=gcc.exe
DFLAGS=-Zomf -c -fhandle-exceptions
#Rules how to build the application
CFLAGS= -Zmt -Zcrtdll -Zomf
LINK=gcc.exe -Zomf -Zcrtdll -Zlinker /PACKD -Zlinker /PACKC -o
#All files to build
all: sample1.exe
#Rules to build the object-files
%.obj: %.cpp
$(CC) $(CFLAGS) $(DFLAGS) $<
#Rules to build the application
sample1.exe: $(OBJS) sample1.res
$(LINK) sample1.exe $(OBJS) $(LIBS) sample1.def
rc sample1.res sample1.exe
#Rules to build the resource-files
sample1.res: sample1.rc\
resource.h\
sample1.dlg\
sample1.ico
rc -r sample1.rc
#Dependencies of the related files
sample1.obj: sample1.cpp\
sample1.h