X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=Makefile;h=15c8199b0344bc121e9b060208b1973c72931a83;hp=8442de4723a740479adc59f7f87d1029c7dbdad0;hb=3fda8f516f04eb9c0a0f7622da4ed985c1a6a632;hpb=e9c581ab58322ed67df8429a43cfbc836f84ca75;ds=sidebyside diff --git a/Makefile b/Makefile index 8442de4..15c8199 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,16 @@ PREFIX = /usr APP = browser-switchboard obj = main.o launcher.o dbus-server-bindings.o configfile.o log.o -all: $(APP) +all: + @echo 'Usage:' + @echo ' make diablo -- build for Diablo' + @echo ' make fremantle -- build for Fremantle' +diablo: $(APP) +fremantle: + @$(MAKE) \ + EXTRA_CPPFLAGS='-DFREMANTLE `pkg-config --cflags dbus-1` $(EXTRA_CPPFLAGS)' \ + EXTRA_LDFLAGS='`pkg-config --libs dbus-1` $(EXTRA_LDFLAGS)' $(APP) + $(APP): dbus-server-glue.h $(obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $(APP) $(obj) @@ -19,17 +28,17 @@ dbus-server-glue.h: strip: $(APP) strip $(APP) -install: all +install: $(APP) mkdir -p $(DESTDIR)$(PREFIX)/bin mkdir -p $(DESTDIR)$(PREFIX)/share/dbus-1/services mkdir -p $(DESTDIR)$(PREFIX)/share/applications/hildon - install -c -m 0755 browser-switchboard $(DESTDIR)$(PREFIX)/bin + install -c -m 0755 $(APP) $(DESTDIR)$(PREFIX)/bin install -c -m 0644 com.nokia.osso_browser.service $(DESTDIR)$(PREFIX)/share/dbus-1/services install -c -m 0755 browser $(DESTDIR)$(PREFIX)/bin install -c -m 0755 microb $(DESTDIR)$(PREFIX)/bin install -c -m 0644 microb.desktop $(DESTDIR)$(PREFIX)/share/applications/hildon clean: - rm -f $(APP) *.o dbus-server-glue.h + rm -f $(APP) $(obj) dbus-server-glue.h -.PHONY: strip install +.PHONY: strip install diablo fremantle