X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/c316c28e6c8a165111d6bbc208555f5c53489818..db7fc030e9e04c881f5f12a0e23baa8db4e20ee1:/lunaix-os/makefile.prog?ds=inline diff --git a/lunaix-os/makefile.prog b/lunaix-os/makefile.prog new file mode 100644 index 0000000..1c09c78 --- /dev/null +++ b/lunaix-os/makefile.prog @@ -0,0 +1,12 @@ +include config/make-locations +include config/make-os +include config/make-cc + +SRC_FILES := $(wildcard uprog/*.c) +PROGRAMES := $(patsubst uprog/%.c, $(USR_DIR)/%, $(SRC_FILES)) + +$(USR_DIR)/%: + @echo " BUILD $(*F)" + @$(CC) -T usr/link-usr.ld $(INCLUDES) $(CFLAGS) $(LDFLAGS) uprog/$(*F).c $(BIN_DIR)/$(USR_LIB) -o $@ + +all: $(PROGRAMES) \ No newline at end of file