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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [mw/] [src/] [demos/] [nanowm/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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