regression: elf loading
[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) $(LDFLAGS) uprog/$(*F).c $(BIN_DIR)/$(USR_LIB) -o $@
11
12 all: $(PROGRAMES)