diff options
Diffstat (limited to 'pkgs/games/build-support/build-sandbox/src/Makefile')
-rw-r--r-- | pkgs/games/build-support/build-sandbox/src/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/games/build-support/build-sandbox/src/Makefile b/pkgs/games/build-support/build-sandbox/src/Makefile index 57c732af..49b266fe 100644 --- a/pkgs/games/build-support/build-sandbox/src/Makefile +++ b/pkgs/games/build-support/build-sandbox/src/Makefile @@ -1,15 +1,17 @@ BINARIES = $(wildcard $(BINDIR)/*) WRAPPERS = $(subst $(BINDIR),$(out)/bin,$(BINARIES)) +OBJECTS = get-closure.o params.o setup.o + CFLAGS = -Wall -std=gnu11 -DFS_ROOT_DIR=\"$(out)\" CXXFLAGS = -Wall -std=c++14 `pkg-config --cflags nix-main` LDFLAGS = `pkg-config --libs nix-main` -all: get-closure.o +all: $(OBJECTS) $(out)/bin/%: CFLAGS += -DWRAPPED_PROGNAME=\"$(@F)\" $(out)/bin/%: CFLAGS += -DWRAPPED_PATH=\"$(BINDIR)/$(@F)\" -$(out)/bin/%: get-closure.o +$(out)/bin/%: $(OBJECTS) mkdir -p $(out)/bin $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $? sandbox.c |