Skip to content

Commit

Permalink
Fix pack scope
Browse files Browse the repository at this point in the history
  • Loading branch information
lthls committed Sep 6, 2021
1 parent 8bda71c commit 6a4b12f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions debugger/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ debugger_modules := \
show_source time_travel program_management frames eval \
show_information loadprinter debugger_parser command_line main

all_modules := $(compiler_modules) $(debugger_modules)
compiler_objects := $(addsuffix .cmo,$(compiler_modules))

all_objects := $(addsuffix .cmo,$(all_modules))
debugger_objects := $(addsuffix .cmo,$(debugger_modules))

libraries = $(ROOTDIR)/compilerlibs/ocamlcommon.cma \
$(UNIXDIR)/unix.cma $(DYNLINKDIR)/dynlink.cma

all: ocamldebug$(EXE)

ocamldebug.cmo: $(all_objects)
ocamldebug.cmo: $(debugger_objects)
$(CAMLC) -pack $(COMPFLAGS) -o $@ $^

ocamldebug$(EXE): $(libraries) ocamldebug.cmo ocamldebug_entry.cmo
ocamldebug$(EXE): $(libraries) $(compiler_objects) ocamldebug.cmo ocamldebug_entry.cmo
$(CAMLC) $(LINKFLAGS) -o $@ -linkall $^

install:
Expand Down

0 comments on commit 6a4b12f

Please sign in to comment.