Skip to content

Commit

Permalink
Update Makefile.gappkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed Apr 3, 2020
1 parent c6d73ca commit c1ac76b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile.gappkg
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ all: $(KEXT_SO)
# For each file FOO.c in SOURCES, add gen/FOO.lo to KEXT_OBJS; similar
# for .cc files
########################################################################
KEXT_OBJS = $(patsubst %.cc,gen/%.lo,$(patsubst %.c,gen/%.lo,$(KEXT_SOURCES)))
KEXT_OBJS = $(patsubst %.s,gen/%.lo, \
$(patsubst %.cc,gen/%.lo, \
$(patsubst %.c,gen/%.lo, \
$(KEXT_SOURCES))))

########################################################################
# Quiet rules.
Expand Down Expand Up @@ -105,6 +108,11 @@ gen/%.lo: %.c Makefile
gen/%.lo: %.cc Makefile
$(QUIET_GAC)$(GAC) -d -p "$(KEXT_DEPFLAGS)" -p "$(KEXT_CXXFLAGS)" -c $< -o $@

# build rule for assembler code
# The dependency on Makefile ensures that re-running configure recompiles everything
gen/%.lo: %.s Makefile
$(QUIET_GAC)$(GAC) -d -p "$(KEXT_DEPFLAGS)" -p "$(KEXT_CFLAGS)" -c $< -o $@

# build rule for linking all object files together into a kernel extension
$(KEXT_SO): $(KEXT_OBJS)
@mkdir -p $(KEXT_BINARCHDIR)
Expand Down

0 comments on commit c1ac76b

Please sign in to comment.