1*2e9d4914SAndroid Build Coastguard WorkerCC=gcc 2*2e9d4914SAndroid Build Coastguard WorkerCFLAGS=-O2 -Wall 3*2e9d4914SAndroid Build Coastguard Worker#Use for DEVELOP mode: 4*2e9d4914SAndroid Build Coastguard Worker#DEVFLAGS=-g -D __DEVEL__ 5*2e9d4914SAndroid Build Coastguard Worker#Use for PRODUCTION mode: 6*2e9d4914SAndroid Build Coastguard WorkerDEVFLAGS=-s -fomit-frame-pointer 7*2e9d4914SAndroid Build Coastguard Worker 8*2e9d4914SAndroid Build Coastguard Workerall: ls-config langs 9*2e9d4914SAndroid Build Coastguard Worker 10*2e9d4914SAndroid Build Coastguard Workerls-config: ls-config.c ls-config.pot 11*2e9d4914SAndroid Build Coastguard Worker $(CC) $(CFLAGS) $(DEVFLAGS) -o ../ls-config ls-config.c -L../lib -lm -lconfig 12*2e9d4914SAndroid Build Coastguard Worker 13*2e9d4914SAndroid Build Coastguard Workerls-config.pot: 14*2e9d4914SAndroid Build Coastguard Worker xgettext -d ls-config -o po/ls-config.pot ls-config.c 15*2e9d4914SAndroid Build Coastguard Worker 16*2e9d4914SAndroid Build Coastguard Workerlangs: 17*2e9d4914SAndroid Build Coastguard Worker make -C po 18*2e9d4914SAndroid Build Coastguard Worker 19*2e9d4914SAndroid Build Coastguard Workerinstall: 20*2e9d4914SAndroid Build Coastguard Worker mkdir -p /usr/share/ls/lib 21*2e9d4914SAndroid Build Coastguard Worker chown root:adm /usr/share/ls/lib 22*2e9d4914SAndroid Build Coastguard Worker cp ../ls-config /usr/share/ls/lib/ 23*2e9d4914SAndroid Build Coastguard Worker chown root:adm /usr/share/ls/lib 24*2e9d4914SAndroid Build Coastguard Worker chmod 755 /usr/share/ls/lib/ls-config 25*2e9d4914SAndroid Build Coastguard Worker make -C po install 26*2e9d4914SAndroid Build Coastguard Worker 27*2e9d4914SAndroid Build Coastguard Workerclean: 28*2e9d4914SAndroid Build Coastguard Worker make -C po clean 29*2e9d4914SAndroid Build Coastguard Worker 30*2e9d4914SAndroid Build Coastguard Workerremove: 31*2e9d4914SAndroid Build Coastguard Worker rm -f /usr/share/ls/lib/ls-config 32*2e9d4914SAndroid Build Coastguard Worker make -C po remove 33*2e9d4914SAndroid Build Coastguard Worker 34*2e9d4914SAndroid Build Coastguard Worker 35