diff options
Diffstat (limited to 'src/modules/manager')
-rw-r--r-- | src/modules/manager/Makefile | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/src/modules/manager/Makefile b/src/modules/manager/Makefile index 87a9590..abce5cb 100644 --- a/src/modules/manager/Makefile +++ b/src/modules/manager/Makefile @@ -1,33 +1,9 @@ -.PHONY: clean, mrproper +Obj = main.o +Out = manager.elf -CC = gcc -CFLAGS = -nostdlib -nostartfiles -nodefaultlibs -fno-builtin -fno-stack-protector -Wall -Wextra -I ../../include +include ../../common.make -LD = ld -LDFLAGS = -T ../../library/link.ld -L ../../library -Map manager.map +CFLAGS += -I ../../include -Objects = main.o -Outfile = manager.elf - -all: $(Outfile) - echo "* Done with $(Outfile)" - -rebuild: mrproper all - -$(Outfile): $(Objects) - echo "* Linking $@..." - $(LD) $(LDFLAGS) -o $@ $^ - -%.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ - -clean: - echo "* Removing objects..." - rm *.o || exit 0 - rm *.map || exit 0 - rm $(Objects) || exit 0 - -mrproper: clean - rm *.elf || exit 0 - rm $(Outfile) || exit 0 +LDFLAGS += -T ../../library/link.ld -L ../../library -Map manager.map |