home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 May
/
PCWorld_2003-05_cd.bin
/
Software
/
Vyzkuste
/
rbtray
/
Makefile
next >
Wrap
Makefile
|
1999-10-27
|
1KB
|
67 lines
# This is makefile for gcc-2.95-mingw32 -- win32 port of GNU C
#
# (C) 1999 Nikolay V. Redko <nike@zmail.ru>
CC = gcc
DLLTOOL = dlltool
DLLWRAP = dllwrap
RC = windres
M = Makefile
CFLAGS = -O2
DLL_SRC = rbhook.c
EXE_SRC = rbtray.c
RES_SRC = rbtray.rc
DLL_NAME = rbhook.dll
DLL_EXP_DEF = rbhook.def
DLL_EXP_LIB = libhook.a
DLL_LDFLAGS = -mdll
DLL_LDLIBS =
EXE_NAME = rbtray.exe
EXE_LDFLAGS = -mwindows
EXE_LDLIBS =
DLL_OBJ = $(DLL_SRC:.c=.o)
EXE_OBJ = $(EXE_SRC:.c=.o)
RES_OBJ = $(RES_SRC:.rc=.res.o)
#-----------------------------------------------------------
all: $(DLL_NAME) $(EXE_NAME)
$(DLL_NAME): $(DLL_OBJ) $(DLL_EXP_DEF) $M
$(DLLWRAP) --driver-name $(CC) --def $(DLL_EXP_DEF) -o $(DLL_NAME) \
$(DLL_OBJ) $(DLL_LDFLAGS) $(DLL_LDLIBS)
$(DLL_EXP_LIB): $(DLL_EXP_DEF) $M
$(DLLTOOL) --dllname $(DLL_NAME) --def $(DLL_EXP_DEF) \
--output-lib $(DLL_EXP_LIB)
$(DLL_EXP_DEF): $(DLL_OBJ) $M
$(DLLTOOL) --export-all --output-def $@ $(DLL_OBJ)
$(DLL_OBJ): $(DLL_SRC) $M
$(CC) $(CFLAGS) -c $< -o $@
$(EXE_NAME): $(EXE_SRC) $(DLL_EXP_LIB) $(RES_OBJ) $M
$(CC) $(CFLAGS) $(EXE_LDFLAGS) -o $@ $(EXE_SRC) -L./ -lhook
$(RES_OBJ): $(RES_SRC) $M
$(RC) $< $@
#-----------------------------------------------------------
clean:
@rm -f *.o *.def *.a *.res
cleanall:
@rm -f *.o *.def *.a *.res *.exe *.dll
strip:
strip $(EXE_NAME)
strip $(DLL_NAME)