Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.65 KB | None | 0 0
  1. CROSSWIN := i586-mingw32msvc-
  2. PATHWIN := /usr/i586-mingw32msvc
  3. GECKOWIN := /home/ivan/Documents/Source/explugin/windows/npapi-sdk-read-only/headers
  4. 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
  5.  
  6. LIBS := `pkg-config --cflags libxul`
  7.  
  8. lgplugin.so: lg.o
  9.     cp linux/lg.o . && gcc -shared -o linux/$@ $< ; \
  10.     cp windows/lg.o . && $(CCWIN) -shared -o windows/$@.dll $<
  11.  
  12. %.o: %.c
  13.     gcc $(LIBS) -c $< && mv $@ linux/ && \
  14.     $(CCWIN) -c $< && mv $@ windows/ && \
  15.     touch lg.o
  16.  
  17. clean:
  18.     rm linux/*.o ; rm windows/*.o; rm linux/*.so; rm windows/*.dll
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement