############################################################################# # Makefile for Netscape Plugin for Squeak # using gcc 3.4.4 and cygwin ############################################################################# OBJECTS= npsqueak.o np_entry.o npn_gate.o npp_gate.o npsqueak.res CFLAGS= -mno-cygwin -D_WINDOWS -DDEBUG RC= windres RCFLAGS= -O coff CC= gcc npsqueak.dll: $(OBJECTS) g++ $(CFLAGS) -shared -Wl,--enable-stdcall-fixup -o $@ $(OBJECTS) npsqueak.def npsqueak.res: npsqueak.rc $(RC) $(RCFLAGS) -i $< -o $@ %.o : common/%.cpp $(CC) $(CFLAGS) -c -o $@ $< -I./include npsqueak.o: npsqueak.cpp $(CC) $(CFLAGS) -c -o $@ $< -I./include install: npsqueak.dll strip $< cp $< /cygdrive/c/Program\ Files/Mozilla\ Firefox/plugins/ test: firefox plugintest.html clean: -rm *.o -rm *.res -rm *.dll dist: zip -R npsqueak \ '*.cpp' \ '*.h' \ Makefile \ plugintest.html \ npsqueak.sln \ npsqueak.vcproj \ npsqueak.rc \ npsqueak.def \ Workspace.pr