forked from kakaroto/pthread-embeded
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
57 lines (46 loc) · 1.31 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
prefix = @prefix@
NEWLIB = $(prefix)/x86_64-hermit
MAKE = make
CC_FOR_TARGET = x86_64-hermit-gcc
CFLAGS_FOR_TARGET = -m64 -mtls-direct-seg-refs -O3 -ftree-vectorize -I. -Iplatform/hermit -Iplatform/helper -I$(NEWLIB)/include
AR_FOR_TARGET = x86_64-hermit-ar
ARFLAGS_FOR_TARGET = rsv
CP = cp
C_source = $(wildcard *.c) platform/hermit/pte_osal.c platform/helper/tls-helper.c
NAME = libpthread.a
OBJS = $(C_source:.c=.o)
RM = rm -rf
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
#
# Prettify output
V = 0
ifeq ($V,0)
Q = @
P = > /dev/null
endif
# other implicit rules
%.o : %.c
@echo [CC] $@
$Q$(CC_FOR_TARGET) -c $(CFLAGS_FOR_TARGET) -o $@ $<
default: all
all: $(NAME)
$(NAME): $(OBJS)
$Q$(AR_FOR_TARGET) $(ARFLAGS_FOR_TARGET) $@ $(OBJS)
install:
$(INSTALL_DATA) $(NAME) NEWLIB/lib
$(INSTALL_DATA) pthread.h $(NEWLIB)/include
$(INSTALL_DATA) semaphore.h $(NEWLIB)/include
$(INSTALL_DATA) platform/hermit/pte_types.h $(NEWLIB)/include
clean:
@echo Cleaning examples
$Q$(RM) $(NAME) *.o *~ platform/hermit/*.o platform/helper/*.o
veryclean:
@echo Propper cleaning examples
$Q$(RM) $(NAME) *.o *~ platform/hermit/*.o platform/helper/*.o
depend:
$Q$(CC_FOR_TARGET) -MM $(CFLAGS_FOR_TARGET) *.c > Makefile.dep
-include Makefile.dep
# DO NOT DELETE