mirror of
https://github.com/sjlongland/atinysynth.git
synced 2025-09-13 10:03:15 +10:00
Makefile: Make object list configurable.
Allow ports to insert their own object files to the list.
This commit is contained in:
parent
aa3771dc78
commit
01a1bc8b70
3
Makefile
3
Makefile
@ -11,6 +11,7 @@ PORT ?= pc
|
||||
BINDIR ?= bin/$(PORT)
|
||||
PORTDIR ?= ports/$(PORT)
|
||||
OBJDIR ?= obj/$(PORT)
|
||||
OBJECTS :=
|
||||
|
||||
SRCDIR ?= $(PWD)
|
||||
|
||||
@ -19,7 +20,7 @@ SRCDIR ?= $(PWD)
|
||||
-include local.mk
|
||||
include $(PORTDIR)/Makefile
|
||||
|
||||
$(BINDIR)/synth: $(OBJDIR)/main.o $(OBJDIR)/poly.a
|
||||
$(BINDIR)/synth: $(OBJECTS) $(OBJDIR)/poly.a
|
||||
@[ -d $(BINDIR) ] || mkdir -p $(BINDIR)
|
||||
$(CC) -g -o $@ $(LDFLAGS) $(LIBS) $^
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user