source: src-sh/pbi-manager10/wrapper/Makefile @ 393790b

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 393790b was 393790b, checked in by Kris Moore <kris@…>, 13 months ago

Started hacking on the PBI10 format, switch to storing data in
a geom_uzip container for starts

This will eventually allow us to "run" apps directly from the
downloaded PBI file, without going through the installation process

  • Property mode set to 100644
File size: 3.0 KB
Line 
1#############################################################################
2# Makefile for building: /usr/local/bin/pbiwrapper
3#############################################################################
4
5####### Compiler, tools and options
6
7CC            ?= gcc
8CXX           ?= g++
9DEFINES       = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
10CFLAGS        = -pipe -O2 -Wall -W $(DEFINES)
11CXXFLAGS      = -pipe -O2 -Wall -W $(DEFINES)
12INCPATH       = -I/usr/local/include -I. -I/usr/local/include
13LFLAGS        = -Wl,-O1 $(DEFINES)
14LIBS          = $(SUBLIBS)
15AR            = ar cqs
16RANLIB        = 
17TAR           = tar -cf
18COMPRESS      = gzip -9f
19COPY          = cp -f
20SED           = sed
21COPY_FILE     = $(COPY)
22COPY_DIR      = $(COPY) -R
23STRIP         = 
24INSTALL_FILE  = $(COPY_FILE)
25INSTALL_DIR   = $(COPY_DIR)
26INSTALL_PROGRAM = $(COPY_FILE)
27DEL_FILE      = rm -f
28SYMLINK       = ln -f -s
29DEL_DIR       = rmdir
30MOVE          = mv -f
31CHK_DIR_EXISTS= test -d
32MKDIR         = mkdir -p
33
34####### Output directory
35
36OBJECTS_DIR   = ./
37
38####### Files
39
40SOURCES       = main.c
41OBJECTS       = main.o
42MAKE_TARGET   = pbiwrapper
43TARGET        = pbiwrapper
44
45first: all
46####### Implicit rules
47
48.SUFFIXES: .o .c .cpp .cc .cxx .C
49
50.cpp.o:
51        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
52
53.cc.o:
54        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
55
56.cxx.o:
57        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
58
59.C.o:
60        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
61
62.c.o:
63        $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
64
65####### Build rules
66
67all: Makefile $(TARGET)
68
69$(TARGET)$(OBJECTS) 
70        $(CC) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
71
72Makefile:
73
74dist:
75        @$(CHK_DIR_EXISTS) .tmp/pbiwrapper || $(MKDIR) .tmp/pbiwrapper1.0.0
76        $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/pbiwrapper1.0.0/ && $(COPY_FILE) --parents updatecheck.c .tmp/pbiwrapper1.0.0/ && (cd `dirname .tmp/pbiwrapper1.0.0` && $(TAR) pbiwrapper1.0.0.tar pbiwrapper1.0.0 && $(COMPRESS) pbiwrapper1.0.0.tar) && $(MOVE) `dirname .tmp/pbiwrapper1.0.0`/pbiwrapper1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/pbiwrapper1.0.0
77
78
79clean:compiler_clean
80        -$(DEL_FILE) $(OBJECTS)
81        -$(DEL_FILE) *~ core *.core
82
83
84####### Sub-libraries
85
86distclean: clean
87        -$(DEL_FILE) $(TARGET) 
88        -$(DEL_FILE) Makefile
89
90
91check: first
92
93mocclean: compiler_moc_header_clean compiler_moc_source_clean
94
95mocables: compiler_moc_header_make_all compiler_moc_source_make_all
96
97compiler_moc_header_make_all:
98compiler_moc_header_clean:
99compiler_rcc_make_all:
100compiler_rcc_clean:
101compiler_image_collection_make_all: qmake_image_collection.cpp
102compiler_image_collection_clean:
103        -$(DEL_FILE) qmake_image_collection.cpp
104compiler_moc_source_make_all:
105compiler_moc_source_clean:
106compiler_uic_make_all:
107compiler_uic_clean:
108compiler_yacc_decl_make_all:
109compiler_yacc_decl_clean:
110compiler_yacc_impl_make_all:
111compiler_yacc_impl_clean:
112compiler_lex_make_all:
113compiler_lex_clean:
114compiler_clean:
115
116####### Compile
117
118main.o: main.c
119        $(CC) -c $(CFLAGS) $(INCPATH) -o main.o main.c
120
121####### Install
122
123install_scripts: first FORCE
124
125install:   FORCE install_scripts
126
127uninstall:   FORCE
128
129FORCE:
130
Note: See TracBrowser for help on using the repository browser.