Skip to content

Commit 7268e5c

Browse files
committed
- more rml cleanup
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22942 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 9fd0b89 commit 7268e5c

File tree

3 files changed

+7
-146
lines changed

3 files changed

+7
-146
lines changed

Compiler/Makefile.compiler_subdirs.common

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,24 @@
11
#
2-
# A common Makefile for omc_release, omc_debug, omc_profiler
2+
# A common Makefile for subdirectories (runtime and parser)
33
# Should be used for both OMDev and Linux
44
#
55

66
include $(srcdir)/Makefile.common
77

8-
all : .testvariables .depend $(ALLMO) $(SRCSIGX)
9-
# Updated dependencies; reload make and compile the target
10-
$(MAKE) -f $(MAKETARGET) $(PROG)
8+
all : .testvariables .depend runtime parser
119

1210
SUBDIRS = runtime parser
1311
SRCHSRCDIR = $(SRCH:%.h=$(srcdir)/%.h)
1412

1513
.SUFFIXES: .o .mo .h .c
16-
.PHONY: all vctarget absyn_subdir clean reallyclean nolink $(SUBDIRS) $(PROG)
17-
18-
vpath %.mo $(FRONTEND_DIR)
19-
vpath %.mo $(FFRONTEND_DIR)
20-
vpath %.mo $(BACKEND_DIR)
21-
vpath %.mo $(SIMCODE_DIR)
22-
vpath %.mo $(GLOBAL_DIR)
23-
vpath %.mo $(TEMPLATE_DIR)
24-
vpath %.mo $(SCRIPT_DIR)
25-
vpath %.mo $(UTIL_DIR)
26-
vpath %.mo $(MAIN_DIR)
27-
28-
.depend: $(ALLMO)
29-
-$(RM) .depend
30-
time $(RMLHOME)/bin/rml $(RML_INCLUDE_ALL_DIRS) -fdump-depends $(SRCMO) > .depend
14+
.PHONY: all clean reallyclean $(SUBDIRS)
3115

3216
$(SRCO): %.o : %.c %.h
3317
$(CC) $(CFLAGS) $(RMLINC) -c $<
3418

35-
%.c %.h : %.mo
36-
$(RMLC) $(RMLCFLAGS) +C $<
37-
38-
%.h : %.c
39-
4019
$(SRCHSRCDIR) : $(srcdir)/%.h : %.h
4120
cp $< $@
4221

43-
$(SRCSIGX): %.sigx : %.mo
44-
$(srcdir)/rml2sig/rmldep-new.sh $(RML) $<
45-
@touch $@
46-
47-
vctarget: $(SRCC) absyn_subdir
48-
49-
absyn_subdir: $(SRCHSRCDIR)
50-
(cd $(top_builddir)/Parser && $(MAKE) -f $(MAKETARGET) vctarget)
51-
5222
runtime: $(SRCHSRCDIR)
5323
$(MAKE) -C ../runtime/ -f $(MAKETARGET)
5424
parser: $(SRCHSRCDIR)
@@ -60,14 +30,12 @@ clean:
6030
done
6131
(cd $(srcdir) && $(RM) $(SRCH))
6232
$(RM) -f .depend
63-
$(RM) -f $(SRCO) $(SRCC) $(SRCH) $(PROG)$(EXEEXT) *~ \
64-
$(ALLMO:%.mo=%.srz) $(SRCSIGX) $(SRCSIG) *.srz *.o *.sig *.sigx *.c *.h
33+
$(RM) -f $(SRCO) $(SRCC) $(SRCH) *~
6534

6635
reallyclean: clean
67-
$(RM) -f $(ALLMO:%.mo=%.srz) $(SRCSIGX) $(SRCSIG) $(PROG)$(EXEEXT)
6836

6937
# don't remove these files after intermediate build steps
70-
.PRECIOUS: Makefile $(ALLMO)
38+
.PRECIOUS: Makefile
7139

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

Compiler/Makefile.in

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ SUBDIRS = runtime
3939

4040
.SUFFIXES:
4141
.SUFFIXES: .o .mo .h
42-
.PHONY: all subdirs report vctarget debug release depend clean dclean test reallyclean omc_release simcode builtin
42+
.PHONY: all subdirs report vctarget debug release depend clean dclean test reallyclean simcode builtin
4343

4444
#all : debug
4545
all : release
@@ -50,27 +50,16 @@ debug: dinstall
5050

5151
release: install
5252

53-
$(PROG): omc_release
54-
echo Copying $(PROG)$(EXEEXT) into $(builddir_bin)
55-
cp omc_release/$(PROG)$(EXEEXT) $(builddir_bin)/
56-
5753
install_scripts:
5854
cd scripts; cp $(SCRIPT_FILES) ../$(builddir_scripts)
5955
cp OpenModelicaBootstrappingHeader.h $(top_builddir)/build/include/omc/c/
6056

61-
install: install_scripts $(PROG)
62-
63-
nodepend:
64-
(cd omc_release && $(MAKE))
65-
66-
omc_release: simcode builtin
67-
(cd omc_release && $(MAKE))
57+
install: install_scripts
6858

6959
clean:
7060
@for d in $(SUBDIRS); do \
7161
(cd $$d ; $(MAKE) clean) \
7262
done
73-
(cd omc_release; $(MAKE) clean)
7463
-$(RM) -f $(SRCH)
7564
-$(RM) -f $(builddir_bin)/$(PROG)$(EXEEXT)
7665
-cd $(builddir_bin) && rm -f $(SCRIPT_FILES)
@@ -79,7 +68,6 @@ reallyclean:
7968
@for d in $(SUBDIRS); do \
8069
(cd $$d ; $(MAKE) reallyclean) \
8170
done
82-
(cd omc_release; $(MAKE) reallyclean)
8371
-$(RM) -f $(SRCH)
8472
-$(RM) -f $(builddir)/$(PROG)$(EXEEXT)
8573

tools/Makefile.in

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)