OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [src/] [demos/] [nanowm/] [Makefile] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
##############################################################################
2
# Microwindows template Makefile
3
# Copyright (c) 2000, 2002 Martin Jolicoeur, Greg Haerr
4
##############################################################################
5
 
6
ifndef TOP
7
TOP = ../..
8
CONFIG = $(TOP)/config
9
endif
10
 
11
include $(CONFIG)
12
 
13
VPATH := $(TOP)/demos/nanowm
14
 
15
######################## Additional Flags section ############################
16
 
17
# Directories list for header files
18
INCLUDEDIRS +=
19
# Defines for preprocessor
20
DEFINES +=
21
 
22
# Compilation flags for C files OTHER than include directories
23
CFLAGS +=
24
# Preprocessor flags OTHER than defines
25
CPPFLAGS +=
26
# Linking flags
27
LDFLAGS +=
28
 
29
############################# targets section ################################
30
 
31
ifeq ($(NANOWM), Y)
32
 
33
# If you want to create a library with the objects files, define the name here
34
LIBNAME =
35
 
36
# List of objects to compile
37
OBJS = nanowm.o events.o wlist.o clients.o actions.o
38
 
39
ifeq ($(ARCH), ECOS)
40
TARGET = $(BUILD)/bin/nanowm.o
41
else
42
TARGET = $(BUILD)/bin/nanowm
43
endif
44
 
45
all: default $(TARGET)
46
 
47
endif
48
 
49
######################### Makefile.rules section #############################
50
 
51
include $(TOP)/Makefile.rules
52
 
53
######################## Tools targets section ###############################
54
ifeq ($(SHAREDLIBS), Y)
55
$(TOP)/bin/nanowm: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
56
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS)
57
else
58
ifeq ($(ARCH), ECOS)
59
$(BUILD)/bin/nanowm.o: $(OBJS) $(BUILD)/config
60
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nanowm_main=main -o XX.o
61
        $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
62
        rm -f XX.o
63
else
64
$(TOP)/bin/nanowm: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
65
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)
66
endif
67
endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.