add external libraries and update stm version
[mTask.git] / int / com / pj / pjhdr.mk
1 ZZZ := $(shell rm -fv cln)
2
3 ifeq ($(AUTOJ),1)
4 CORES := $(shell expr `grep -c ^processor /proc/cpuinfo` + 1)
5 NUMJOBS := -j $(CORES)
6 MAKEFLAGS += $(NUMJOBS)
7 endif
8
9 #$(info $(CORES))
10
11 PJNAME := $(notdir $(CURDIR))
12 PJDIR := ../$(notdir $(CURDIR))
13
14 ifeq ($(EXPDIR),)
15 EXPDIR := ../../export
16 endif
17
18 OBJDIR := o
19 ARDIR := a
20 SRCDIR := src
21 INCDIR := inc
22 LDDIR := $(COMDIR)/ld
23 LDINC :=
24 LDOPT :=
25 LIBDIR := $(COMDIR)/lib
26 CSRCDIR := $(COMDIR)/src
27 PORTDIR := port
28 CUBEDIR := cube
29
30 LIBS :=
31 LIBDIRS :=
32 LIBSRCS :=
33 PORTDIRS :=
34 CSRCDIRS :=
35 LIBS_OPT :=
36 SRCS_ADD :=
37 CLEAN_ADD :=
38
39 current_mk = $(patsubst %.mk,%, $(notdir $(lastword $(MAKEFILE_LIST))))
40
41 .phony all: