Makefile.in 1.12 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
DEFS      = -DWINELIB
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
MODULE    = none
PROGRAMS  = view
ALL_LIBS  = $(WINELIB) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LIBS)
RCFLAGS   = -w32 -h

C_SRCS = \
	init.c \
	view.c \
	winmain.c

Alexandre Julliard's avatar
Alexandre Julliard committed
16 17 18
RC_SRCS = \
	viewrc.rc

Alexandre Julliard's avatar
Alexandre Julliard committed
19 20 21 22 23 24
all: check_winerc $(PROGRAMS)

depend:: $(RC_SRCS:.rc=.h)

@MAKE_RULES@

Alexandre Julliard's avatar
Alexandre Julliard committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# Rules for using old resource compiler
.rc.c:
	echo "#include \"windows.h\"" >$*-tmp.c
	echo WINDOWS_H_ENDS_HERE >>$*-tmp.c
	cat $< >>$*-tmp.c
	$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P $*-tmp.c | sed -e '1,/^WINDOWS_H_ENDS_HERE/d' | $(WINERC) $(RCFLAGS) -c -o $* -p $*
	$(RM) $*-tmp.c
.rc.h:
	echo "#include \"windows.h\"" >$*-tmp.c
	echo WINDOWS_H_ENDS_HERE >>$*-tmp.c
	cat $< >>$*-tmp.c
	$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P $*-tmp.c | sed -e '1,/^WINDOWS_H_ENDS_HERE/d' | $(WINERC) $(RCFLAGS) -c -o $* -p $*
	$(RM) $*-tmp.c
clean::
	$(RM) $(RC_SRCS:.rc=.c)


Alexandre Julliard's avatar
Alexandre Julliard committed
42 43 44 45 46 47 48 49 50 51 52
view: $(OBJS)
	$(CC) -o view $(OBJS) $(LDOPTIONS) $(ALL_LIBS)

install: dummy
	$(INSTALL_PROGRAM) view $(bindir)/view

$(RC_SRCS:.rc=.c) $(RC_SRCS:.rc=.h): $(WINERC)

dummy:

### Dependencies: