forked from yisea123/minigui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.ng
69 lines (56 loc) · 1.52 KB
/
makefile.ng
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
58
59
60
61
62
63
64
65
66
67
68
# Makefile for building the libminigui headers with Microsoft Visual C++
# compiler and nmake
# Use: nmake -f makefile.msvc install
TOPINCALL=1
TOPLOOP=1
abs_top_srcdir=..
################################################################
SUBDIRS = ctrl
# The directory where the include files will be installed
libminiguiincludedir = $(includedir)/minigui
# Which header files to install
COMM_HDRS = \
common.h endianrw.h fixedmath.h \
minigui.h gdi.h window.h control.h \
own_malloc.h own_stdio.h \
xvfb.h customial.h \
dti.c
SUB_DIRS = $(SUBDIRS)
################################################################
# includes common defines
include ../rules.make
ifeq (ucos2, $(TARGET_OS))
MGUSE_OWN_PTHREAD=1
endif
ifeq (threadx, $(TARGET_OS))
MGUSE_OWN_PTHREAD=1
endif
ifeq (nucleus, $(TARGET_OS))
MGUSE_OWN_PTHREAD=1
endif
ifeq (vxworks, $(TARGET_OS))
MGUSE_OWN_PTHREAD=1
endif
ifeq (psos, $(TARGET_OS))
MGUSE_OWN_PTHREAD=1
endif
ifeq (ose, $(TARGET_OS))
MGUSE_OWN_PTHREAD=1
MGUSE_OSE=1
endif
################################################################
# specific targets and commands
install::
@for i in $(COMM_HDRS); do $(CP) $$i $(libminiguiincludedir); done
@$(CP) ../mgconfig.h $(libminiguiincludedir)
ifdef MGUSE_OWN_PTHREAD
$(CP) $(TARGET_OS)_semaphore.h $(includedir)/semaphore.h
ifndef MGUSE_OSE
$(CP) $(TARGET_OS)_pthread.h $(includedir)/pthread.h
endif
endif
installdirs : force
@-mkdir $(prefix)
@-mkdir $(includedir)
@-mkdir $(libminiguiincludedir)
@-mkdir $(libminiguiincludedir)/ctrl