Revision b1ca9642 Makefile

View differences:

Makefile
10 10
PROGS-$(CONFIG_FFSERVER) += ffserver
11 11

  
12 12
PROGS      := $(PROGS-yes:%=%$(EXESUF))
13
PROGS_G     = $(PROGS-yes:%=%_g$(EXESUF))
13 14
OBJS        = $(PROGS-yes:%=%.o) cmdutils.o
14 15
MANPAGES    = $(PROGS-yes:%=doc/%.1)
15 16
PODPAGES    = $(PROGS-yes:%=doc/%.pod)
......
20 21

  
21 22
BASENAMES   = ffmpeg ffplay ffprobe ffserver
22 23
ALLPROGS    = $(BASENAMES:%=%$(EXESUF))
24
ALLPROGS_G  = $(BASENAMES:%=%_g$(EXESUF))
23 25
ALLMANPAGES = $(BASENAMES:%=%.1)
24 26

  
25 27
FFLIBS-$(CONFIG_AVDEVICE) += avdevice
......
51 53

  
52 54
all: $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes)
53 55

  
56
$(PROGS): %$(EXESUF): %_g$(EXESUF)
57
	$(CP) $< $@
58
	$(STRIP) $@
59

  
54 60
config.h: .config
55 61
.config: $(wildcard $(FFLIBS:%=$(SRC_DIR)/lib%/all*.c))
56 62
	@-tput bold 2>/dev/null
......
74 80

  
75 81
$(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D))))
76 82

  
77
ffplay$(EXESUF): FF_EXTRALIBS += $(SDL_LIBS)
78
ffserver$(EXESUF): FF_LDFLAGS += $(FFSERVERLDFLAGS)
83
ffplay_g$(EXESUF): FF_EXTRALIBS += $(SDL_LIBS)
84
ffserver_g$(EXESUF): FF_LDFLAGS += $(FFSERVERLDFLAGS)
79 85

  
80
%$(EXESUF): %.o cmdutils.o $(FF_DEP_LIBS)
86
%_g$(EXESUF): %.o cmdutils.o $(FF_DEP_LIBS)
81 87
	$(LD) $(FF_LDFLAGS) -o $@ $< cmdutils.o $(FF_EXTRALIBS)
82 88

  
83 89
tools/%$(EXESUF): tools/%.o
......
159 165
	$(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
160 166

  
161 167
clean:: testclean
162
	$(RM) $(ALLPROGS)
168
	$(RM) $(ALLPROGS) $(ALLPROGS_G)
163 169
	$(RM) $(CLEANSUFFIXES)
164 170
	$(RM) doc/*.html doc/*.pod doc/*.1
165 171
	$(RM) $(TOOLS)

Also available in: Unified diff