Skip to content

Commit

Permalink
build compile: added cross compiler support
Browse files Browse the repository at this point in the history
Signed-off-by: John Sanpe <[email protected]>
  • Loading branch information
sanpeqf committed Feb 7, 2025
1 parent c2de122 commit e8423a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ uninstall:
PHONY += uninstall

sdbd: sdbd.c
gcc -o $@ $^ -O2 $(SDBD_C_FLAGS)
strip $@
$(CROSS_COMPILE)gcc -o $@ $^ -O2 $(SDBD_C_FLAGS)
$(CROSS_COMPILE)strip $@

sdbd-debug: sdbd.c
gcc -o $@ $^ -O0 $(SDBD_C_DEBUG_FLAGS)
$(CROSS_COMPILE)gcc -o $@ $^ -O0 $(SDBD_C_DEBUG_FLAGS)

# Declare the contents of the PHONY variable as phony.
.PHONY: $(PHONY)

0 comments on commit e8423a0

Please sign in to comment.