source: src-sh/pbi-manager10/wrapper/Makefile @ 651bd28

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

Add a new pbi-manager10 copy, this will be used for FreeBSD > 10

  • Property mode set to 100644
File size: 3.3 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        = 
17QMAKE         = /usr/local/bin/qmake-qt4
18TAR           = tar -cf
19COMPRESS      = gzip -9f
20COPY          = cp -f
21SED           = sed
22COPY_FILE     = $(COPY)
23COPY_DIR      = $(COPY) -R
24STRIP         = 
25INSTALL_FILE  = $(COPY_FILE)
26INSTALL_DIR   = $(COPY_DIR)
27INSTALL_PROGRAM = $(COPY_FILE)
28DEL_FILE      = rm -f
29SYMLINK       = ln -f -s
30DEL_DIR       = rmdir
31MOVE          = mv -f
32CHK_DIR_EXISTS= test -d
33MKDIR         = mkdir -p
34
35####### Output directory
36
37OBJECTS_DIR   = ./
38
39####### Files
40
41SOURCES       = main.c
42OBJECTS       = main.o
43MAKE_TARGET   = .pbiwrapper
44DESTDIR       = /usr/pbi/
45TARGET        = .pbiwrapper
46
47first: all
48####### Implicit rules
49
50.SUFFIXES: .o .c .cpp .cc .cxx .C
51
52.cpp.o:
53        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
54
55.cc.o:
56        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
57
58.cxx.o:
59        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
60
61.C.o:
62        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
63
64.c.o:
65        $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
66
67####### Build rules
68
69all: Makefile $(TARGET)
70
71$(TARGET)$(OBJECTS) 
72        @$(CHK_DIR_EXISTS) /usr/pbi/ || $(MKDIR) /usr/pbi/
73        $(CC) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
74
75Makefile:
76
77dist:
78        @$(CHK_DIR_EXISTS) .tmp/pbiwrapper || $(MKDIR) .tmp/pbiwrapper1.0.0
79        $(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
80
81
82clean:compiler_clean
83        -$(DEL_FILE) $(OBJECTS)
84        -$(DEL_FILE) *~ core *.core
85
86
87####### Sub-libraries
88
89distclean: clean
90        -$(DEL_FILE) $(TARGET) 
91        -$(DEL_FILE) Makefile
92
93
94check: first
95
96mocclean: compiler_moc_header_clean compiler_moc_source_clean
97
98mocables: compiler_moc_header_make_all compiler_moc_source_make_all
99
100compiler_moc_header_make_all:
101compiler_moc_header_clean:
102compiler_rcc_make_all:
103compiler_rcc_clean:
104compiler_image_collection_make_all: qmake_image_collection.cpp
105compiler_image_collection_clean:
106        -$(DEL_FILE) qmake_image_collection.cpp
107compiler_moc_source_make_all:
108compiler_moc_source_clean:
109compiler_uic_make_all:
110compiler_uic_clean:
111compiler_yacc_decl_make_all:
112compiler_yacc_decl_clean:
113compiler_yacc_impl_make_all:
114compiler_yacc_impl_clean:
115compiler_lex_make_all:
116compiler_lex_clean:
117compiler_clean:
118
119####### Compile
120
121main.o: main.c
122        $(CC) -c $(CFLAGS) $(INCPATH) -o main.o main.c
123
124####### Install
125
126install_scripts: first FORCE
127        -@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/pbi || $(MKDIR) $(INSTALL_ROOT)/usr/pbi/
128        -$(INSTALL_FILE) .pbiwrapper $(INSTALL_ROOT)/usr/pbi/.pbiwrapper
129
130install:   FORCE install_scripts
131
132uninstall:   FORCE
133
134FORCE:
135
Note: See TracBrowser for help on using the repository browser.