3 INCLUDE
=-I
/usr
/include/xulrunner-1.9
/stable
-I
/usr
/include/nspr
6 LIBSPATH
=-L
/usr
/lib
/nspr
-Wl
,-R
/usr
/lib
/nspr
8 OBJS
=ns-unix.o core.o common.o action.o
20 $(Q
)rm -f
$(OBJS
) $(OUTPUT
)
23 $(Q
)mkdir
-p ~
/.mozilla
/plugins
/
24 $(Q
)cp libglugin.so ~
/.mozilla
/plugins
/libglugin.so
-v
25 @printf
" CP ${OUTPUT}\n"
28 zip firefox-linux-x86-64.zip
$(OUTPUT
)
31 @printf
" CC $(subst $(shell pwd)/,,$(@))\n";
32 $(Q
)$(CC
) $(CFLAGS
) $(INCLUDE
) -c
-o
$@
$<
34 ns-unix.o
: ns-unix.c
$(MAKEFILE
)
35 core.o
: core.c
$(MAKEFILE
)
36 common.o
: common.c
$(MAKEFILE
)
37 action.o
: action.c
$(MAKEFILE
)
39 ${OUTPUT}: $(OBJS
) $(MAKEFILE
)
40 @printf
" LD $(subst $(shell pwd)/,,$(@))\n";
41 $(Q
)$(CC
) $(LIBSPATH
) $(LIBS
) -shared
-o
$@
$(OBJS
)