aboutsummaryrefslogblamecommitdiffstats
path: root/w3mimg/Makefile.in
blob: 8e2ad73af70bc665dd07c5b7013bcd00a1ed6a2f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                       

                                                     

                 
                  
             
 
                               





                              
           



                                                  
                                    




                                                       
                                   






                                                     
#
# w3mimg/Makefile
#
@SET_MAKE@
SHELL=@SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = $(srcdir):.
CFLAGS=$(OPTS) -I.. -I$(top_srcdir) -I$(srcdir) @CFLAGS@ @CPPFLAGS@ @DEFS@ $(IMGCFLAGS)
AR=ar
RANLIB=@RANLIB@
RM=rm

SUBDIRS=fb x11 win
IMGCFLAGS=@IMGX11CFLAGS@ @IMGFBCFLAGS@ @IMGWINCFLAGS@
IMGOBJS=@IMGOBJS@

.PHONY: $(SUBDIRS)
all: w3mimg.a

w3mimg.a: w3mimg.o @IMGTARGETS@
	$(AR) rv $@ $(IMGOBJS)
	$(RANLIB) $@

w3mimg.o: w3mimg.c
	$(CC) $(CFLAGS) -c $<

$(SUBDIRS):
	cd $@ && $(MAKE) CC="$(CC)" OPTS="$(OPTS)"

clean:
	@-$(RM) -f *.o
	@for dir in $(SUBDIRS); do \
		(cd $$dir && $(MAKE) clean RM=$(RM)); \
	 done
	-$(RM) -f w3mimg.a

distclean: clean
	for subdir in $(SUBDIRS); \
	do \
		(cd $$subdir && $(MAKE) distclean); \
	done
	-$(RM) -f Makefile


#