git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into prog-loader
[lunaix-os.git]
/
lunaix-os
/
makefile.prog
1
include config/make-locations
2
include config/make-os
3
include config/make-cc
4
5
SRC_FILES := $(wildcard uprog/*.c)
6
PROGRAMES := $(patsubst uprog/%.c, $(USR_DIR)/%, $(SRC_FILES))
7
8
$(USR_DIR)/%:
9
@echo " BUILD $(*F)"
10
@$(CC) -T usr/link-usr.ld $(INCLUDES) $(CFLAGS) -g $(LDFLAGS) uprog/$(*F).c $(BIN_DIR)/$(USR_LIB) -o $@
11
12
all: $(PROGRAMES)