Skip to content

Commit

Permalink
- Update makefiles for qtclients.
Browse files Browse the repository at this point in the history
  - Added Makefile.unix.in in each client's directory
  - Should be easier to customize behaviour now
  - Now copies the binary from OSX .app's into the build dir when doing a Unix build


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5731 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 26, 2010
1 parent 65e1796 commit 2b41654
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions OMShell/Makefile.unix.in
@@ -0,0 +1,35 @@
top_builddir=../
builddir_bin=$(top_builddir)/build/bin/
builddir_share=$(top_builddir)/build/share/
runtimedir=$(top_builddir)/Compiler/runtime/

QMAKE=@QMAKE@
EXE=@EXE@
NAME=OMShell

.PHONY: always

all: build

Makefile:
$(QMAKE)

clean: Makefile
rm -rf $(NAME) $(NAME)$(EXE) omc_communication.* Makefile

omc_communication.cc omc_communication.h: $(runtimedir)/omc_communication.idl
@IDLCMD@ $<

$(NAME)$(EXE): Makefile omc_communication.cc
make -f Makefile
ifeq ($(EXE),.app)
$(NAME): $(NAME)$(EXE) always
cp -p $</Contents/MacOS/$(NAME) $@
endif

build: $(NAME)
cp -p $(NAME) $(builddir_bin)
cp -p ../OMNotebook/OMNotebookQT4/commands.xml $(builddir_share)/omshell

Makefile.unix: Makefile.unix.in
cd $(top_builddir); ./config.status

0 comments on commit 2b41654

Please sign in to comment.