Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CROSSWIN := i586-mingw32msvc-
- PATHWIN := /usr/i586-mingw32msvc
- GECKOWIN := /home/ivan/Documents/Source/explugin/windows/npapi-sdk-read-only/headers
- CCWIN := AR=$(CROSSWIN)ar AS=$(CROSSWIN)as RANLIB=$(CROSSWIN)ranlib $(CROSSWIN)gcc -b i386 -I$(PATHWIN)/include -I$(GECKOWIN) -L$(PATHWIN)/lib -D_WIN32 -DWIN32
- LIBS := `pkg-config --cflags libxul`
- lgplugin.so: lg.o
- cp linux/lg.o . && gcc -shared -o linux/$@ $< ; \
- cp windows/lg.o . && $(CCWIN) -shared -o windows/$@.dll $<
- %.o: %.c
- gcc $(LIBS) -c $< && mv $@ linux/ && \
- $(CCWIN) -c $< && mv $@ windows/ && \
- touch lg.o
- clean:
- rm linux/*.o ; rm windows/*.o; rm linux/*.so; rm windows/*.dll
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement