Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/xcw/demo/Makefile

    r3875f106 rd548fc0  
    3636#
    3737#    cd <helenos-source-dir>
    38 #    make distclean && make -j 4 PROFILE=amd64
    39 #    cd <helenos-source-dir>/tools/xcw/demo
    40 #    export PATH=$PATH:<helenos-source-dir>/tools/xcw/bin
     38#    mkdir build
     39#    cd build
     40#    ../configure.sh
     41#    ninja
     42#    ../tools/export.sh export
     43#    cd ../tools/xcw/demo
     44#    export PATH=$PATH:<helenos-source-dir>/build/tools/xcw/bin
    4145#    make
    4246#
     
    4448CC = helenos-cc
    4549LD = helenos-ld
     50INSTALL = install
     51TEST = helenos-test
    4652CFLAGS = -std=gnu11 -Wall `helenos-pkg-config --cflags libgui libdraw libmath` \
    4753    -D_HELENOS_SOURCE
    4854LIBS = `helenos-pkg-config --libs libgui libdraw libmath`
     55PREFIX = `helenos-bld-config --install-dir`
    4956output = viewer
    5057objects = viewer.o
     
    5663        rm -f $(output) $(objects)
    5764
     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
    5875$(output): $(objects)
    59         $(LD) -o $@ $^ $(LIBS)
     76        $(CC) -o $@ $^ $(LIBS)
    6077
    6178%.o: %.c
Note: See TracChangeset for help on using the changeset viewer.