Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is the contents of a makefile located at ~/software/thermostat/test/thermostat_frontend/Makefile
- # It prints CURRENT_DIR in a way I don't expect -> $CURRENT_DIR is "d thermostat_frontend"
- PROJECT := thermostat_frontend
- MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
- CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MAKEFILE_PATH))))
- BUILD_DIR := build_$(PROJECT)
- BINARY := $(PROJECT)
- CC := gcc
- LDFLAGS := -lncurses
- src := $(wildcard *.c)
- obj := $(src:.c=.o)
- obj := $(addprefix $(BUILD_DIR)/,$(obj))
- #$(info $$src is [${src}])
- #$(info $$obj is [${obj}])
- $(info $$CURDIR is ${CURDIR})
- $(info $$MAKEFILE_PATH is $(MAKEFILE_PATH))
- $(info $$CURRENT_DIR is "$(CURRENT_DIR)")
- #all: $(PROJECT)
- #
- #$(PROJECT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement