1
0
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:
Stuart Longland 2017-05-01 17:36:56 +10:00
parent aa3771dc78
commit 01a1bc8b70
Signed by: stuartl
GPG Key ID: F954BBBB7948D546

View File

@ -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) $^