Added LICENSE; Added GPL2 header to all source code files
[ArenaLive.git] / Makefile32
blobc81cacb4848147e238133f88da024850fba3f4ff
1 MAKEFILE        =Makefile
2 CC              =gcc -m32
3 INCLUDE         =-I/usr/include/xulrunner-1.9/stable -I/usr/include/nspr
4 CFLAGS          =-Wall -fPIC
5 LIBS            =-lGL -lGLU -lm
6 LIBSPATH        =-L/usr/lib/nspr -Wl,-R/usr/lib/nspr
8 OBJS            =ns-unix.o core.o common.o action.o
9 OUTPUT          =libglugin.so
11 Q               := @
13 .PHONY: build
14 .PHONY: clean
15 .PHONY: install
17 build: ${OUTPUT}
19 clean:
20         $(Q)rm -f $(OBJS) $(OUTPUT)
22 install:
23         $(Q)mkdir -p ~/.mozilla/plugins/
24         $(Q)cp libglugin.so ~/.mozilla/plugins/libglugin.so -v
25         @printf "  CP  ${OUTPUT}\n"
27 pack:
28         zip firefox-linux-x86.zip $(OUTPUT)
30 .c.o:
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)