Update debian/control file
[rrq/maintain_lilo.git] / src / Makefile
index af916c484a3bf875d45d9c53f7c082ccecd428dd..feb144e7a6ba5447ed08ad889e0760b5e7336d04 100644 (file)
@@ -1,6 +1,6 @@
 # -*- makefile -*-
 #
-# Copyright 2009-2011 Joachim Wiedorn
+# Copyright 2009-2013 Joachim Wiedorn
 # All rights reserved.
 # 
 # Licensed under the terms contained in the file 'COPYING'
@@ -16,7 +16,7 @@ include ../make.vars
 
 SHELL=/bin/sh
 CC=gcc
-CPP=$(CC) -E
+CPP=$(CC) -E -P -ffreestanding
 AS86=as86 -0 -a
 LD86=ld86 -0
 NASM=nasm
@@ -243,8 +243,9 @@ install:
        if [ -f diag1.img ]; then cp -f diag1.img $$DESTDIR$(BOOT_DIR); fi
        if [ -f diag2.img ]; then cp -f diag2.img $$DESTDIR$(BOOT_DIR); fi
 
+       strip lilo
        cp lilo $$DESTDIR$(SBIN_DIR)/lilo
-       strip $$DESTDIR$(SBIN_DIR)/lilo
+       [ -x lilo.static ] && strip lilo.static
        cp ../mkrescue $$DESTDIR$(USRSBIN_DIR)/mkrescue
        cp ../keytab-lilo.pl $$DESTDIR$(USRSBIN_DIR)/keytab-lilo
 
@@ -263,8 +264,6 @@ mkloader:   temp.c
 tidy:
        rm -f core $(LIS) *.shs *.crc $(TMP)*
        rm -rf sbin boot usr
-       if [ -x lilo ]; then strip lilo; fi
-       if [ -x lilo.static ]; then strip lilo.static; fi
 
 clean:
        rm -f *.o *.s *.i *.img *.b tmp_make version