Changeset 445 for trunk/libs/mini-libc/Makefile
- Timestamp:
- May 29, 2018, 9:27:23 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/Makefile
r444 r445 1 1 ############################################################################ 2 # Makefile for the ALMOS-MKH "mini-libc"#2 # Makefile for the "mini-libc" library. # 3 3 ############################################################################ 4 4 5 5 -include ../../params-soft.mk 6 6 7 ifeq ($(ARCH_NAME),) 7 8 $(error Please define in ARCH_NAME parameter in params-soft.mk!) 8 9 endif 9 10 10 SRCS = ctype.c dirent.c fcntl.c signal.c stdio.c stdlib.c string.c strings.c sys/mman.c sys/stat.c sys/time.c sys/wait.c unistd.c 11 SRCS = ctype.c \ 12 dirent.c \ 13 fcntl.c \ 14 mman.c \ 15 signal.c \ 16 stat.c \ 17 stdio.c \ 18 stdlib.c \ 19 string.c \ 20 strings.c \ 21 time.c \ 22 unistd.c \ 23 wait.c 24 11 25 OBJS = $(addprefix build/, $(SRCS:.c=.o)) \ 12 26 $(HAL_ARCH)/build/core/hal_user.o 13 27 14 INCLUDES = -I. -I$(HAL)/generic -I$(LIBPTHREAD_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) 28 INCLUDES = -I. \ 29 -I$(LIBPTHREAD_PATH) \ 30 -I$(LIBALMOSMKH_PATH) \ 31 -I$(SHARED_INCLUDE) \ 32 -I$(HAL)/generic \ 33 -I$(HAL_ARCH)/core \ 34 -I$(KERNEL) 15 35 16 libs : build/lib/libc.a headers36 libs : build/lib/libc.a headers 17 37 18 38 build : 19 39 @mkdir build 20 @mkdir build/sys21 40 @mkdir build/lib 22 41 @mkdir build/include … … 26 45 $(MAKE) -C $(HAL_ARCH) 27 46 28 29 47 build/%.o : %.c %.h 30 48 $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< … … 32 50 33 51 headers: build 34 cp $(SRCS:.c=.h) assert.h build/include/. 35 cp sys/*.h build/include/sys/. 52 cp ctype.h build/include/. 53 cp dirent.h build/include/. 54 cp fcntl.h build/include/. 55 cp mman.h build/include/sys/. 56 cp signal.h build/include/. 57 cp stat.h build/include/sys/. 58 cp stdio.h build/include/. 59 cp stdlib.h build/include/. 60 cp string.h build/include/. 61 cp strings.h build/include/. 62 cp time.h build/include/. 63 cp unistd.h build/include/. 64 cp wait.h build/include/sys/. 36 65 37 66 build/lib/libc.a: build $(OBJS) 38 67 $(AR) rc $@ $(OBJS) 39 ranlib $@40 68 $(RANLIB) $@ 41 69 42 70 .PHONY = build clean headers 43 71 44 45 72 clean: 46 73 rm -rf build/
Note: See TracChangeset
for help on using the changeset viewer.