Changeset d548fc0 in mainline for tools/xcw/demo/Makefile


Ignore:
Timestamp:
2019-11-15T11:52:18Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84876aa4, c6ac9a55
Parents:
b78300f
git-author:
Jiri Svoboda <jiri@…> (2019-11-14 22:44:04)
git-committer:
Jiri Svoboda <jiri@…> (2019-11-15 11:52:18)
Message:

Bring back helenos-bld-config and ammend XCW demo

Demonstrate use of helenos-bld-config and helenos-test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/xcw/demo/Makefile

    rb78300f rd548fc0  
    4848CC = helenos-cc
    4949LD = helenos-ld
     50INSTALL = install
     51TEST = helenos-test
    5052CFLAGS = -std=gnu11 -Wall `helenos-pkg-config --cflags libgui libdraw libmath` \
    5153    -D_HELENOS_SOURCE
    5254LIBS = `helenos-pkg-config --libs libgui libdraw libmath`
     55PREFIX = `helenos-bld-config --install-dir`
    5356output = viewer
    5457objects = viewer.o
     
    6063        rm -f $(output) $(objects)
    6164
     65install: $(output)
     66        mkdir -p $(PREFIX)/app
     67        $(INSTALL) -T $(output) $(PREFIX)/app/$(output)-xcw
     68
     69uninstall:
     70        rm -f $(PREFIX)/app/$(output)-xcw
     71
     72test: install
     73        $(TEST)
     74
    6275$(output): $(objects)
    6376        $(CC) -o $@ $^ $(LIBS)
Note: See TracChangeset for help on using the changeset viewer.