root / Community Core Vision / Linux / libs / gstappsink / makefile @ 9

View | Annotate | Download (2 KB)

1
################################################################################
2
# Use this makefile to rebuild oFappsink in case of problems with diferent 
3
# gstreamer versions
4
################################################################################
5
6
-include ./makefile.init
7
8
RM := rm -rf
9
10
# All of the sources participating in the build are defined here
11
#------------------------------------------------------------ sources.mk
12
13
O_SRCS := 
14
C_SRCS := 
15
S_SRCS := 
16
OBJ_SRCS := 
17
ASM_SRCS := 
18
OBJS := 
19
C_DEPS := 
20
ARCHIVES := 
21
22
# Every subdirectory with source files must be described here
23
SUBDIRS := \
24
. \
25
26
#------------------------------------------------------------
27
28
29
#------------------------------------------------------------ subdir.mk
30
31
# Add inputs and outputs from these tool invocations to the build variables 
32
C_SRCS += \
33
./gstappsink.c 
34
35
OBJS += \
36
./gstappsink.o 
37
38
C_DEPS += \
39
./gstappsink.d 
40
41
42
# Each subdirectory must supply rules for building sources it contributes
43
%.o: ./%.c
44
	@echo 'Building file: $<'
45
	@echo 'Invoking: GCC C Compiler'
46
	gcc -m32 -O3 -Wall -c -fmessage-length=0 `pkg-config --cflags gstreamer-0.10` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
47
	@echo 'Finished building: $<'
48
	@echo ' '
49
50
#------------------------------------------------------------
51
52
53
#------------------------------------------------------------ objects.mk
54
55
USER_OBJS :=
56
57
LIBS :=
58
59
#------------------------------------------------------------
60
61
ifneq ($(MAKECMDGOALS),clean)
62
ifneq ($(strip $(C_DEPS)),)
63
-include $(C_DEPS)
64
endif
65
endif
66
67
-include ./makefile.defs
68
69
# Add inputs and outputs from these tool invocations to the build variables 
70
71
# All Target
72
all: liboFappsink.a
73
74
# Tool invocations
75
liboFappsink.a: $(OBJS) $(USER_OBJS)
76
	@echo 'Building target: $@'
77
	@echo 'Invoking: GCC Archiver'
78
	ar -r "lib/linux/liboFappsink.a" $(OBJS) $(USER_OBJS) $(LIBS)
79
	@echo 'Finished building target: $@'
80
	@echo ' '
81
82
# Other Targets
83
clean:
84
	-$(RM) $(OBJS)$(C_DEPS)$(ARCHIVES) lib/linux/liboFappsink.a
85
	-@echo ' '
86
87
.PHONY: all clean dependents
88
.SECONDARY:
89
90
-include ./makefile.targets