Skip to content

Commit

Permalink
Makefile simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 19, 2024
1 parent b8b5ba2 commit a1356cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ else
$(info WARNING! Doxygen is not available. Will skip 'dox' target)
endif

# Link against thread lib
LDFLAGS += -pthread

export

# Build everything...
Expand Down
11 changes: 3 additions & 8 deletions test.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Load the common Makefile definitions...
include config.mk
include config.mk

# Load the common Makefile definitions...
CFLAGS += -g
LDFLAGS += -L$(LIB) -lsmax

Expand All @@ -13,9 +13,4 @@ TESTS = $(BIN)/simpleIntTest $(BIN)/simpleIntsTest $(BIN)/structTest $(BIN)/queu
# Top level make targets...
all: $(TESTS)


$(BIN)/%: $(OBJ)/%.o | $(BIN)
$(CC) -o $@ $^ $(LDFLAGS)

# Standard generic rules and targets...
include build.mk
include build.mk
10 changes: 4 additions & 6 deletions tools.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Load the common Makefile definitions...
include config.mk

LDFLAGS += -L$(LIB) -lsmax
Expand All @@ -7,9 +6,8 @@ LD_LIBRARY_PATH := $(LIB):$(LD_LIBRARY_PATH)
# Top level make targets...
all: $(BIN)/smaxValue $(BIN)/smaxWrite

# Standard generic rules and targets...
include build.mk



# Simple binaries
$(BIN)/%: $(OBJ)/%.o | $(BIN)
$(CC) -o $@ $^ $(LDFLAGS)

include build.mk

0 comments on commit a1356cf

Please sign in to comment.