Ease compilation with alternate PREFIX

This commit is contained in:
Pierre Pronchery 2011-01-04 15:16:11 +00:00
parent b8c0bc9515
commit 91b5e7177f
2 changed files with 4 additions and 2 deletions

View File

@ -73,13 +73,13 @@ gsm.o: gsm.c command.h modem.h gsm.h
$(CC) $(phone_CFLAGS) -c gsm.c
main.o: main.c ../include/Phone.h phone.h ../config.h
$(CC) $(phone_CFLAGS) -c main.c
$(CC) -D PREFIX=\"$(PREFIX)\" $(phone_CFLAGS) -c main.c
modem.o: modem.c gsm.h modem.h
$(CC) $(phone_CFLAGS) -c modem.c
phone.o: phone.c ../include/Phone.h phone.h gsm.h callbacks.h ../config.h
$(CC) $(phone_CFLAGS) -c phone.c
$(CC) -D PREFIX=\"$(PREFIX)\" $(phone_CFLAGS) -c phone.c
contacts.o: contacts.c common.c
$(CC) $(phone-contacts_CFLAGS) -c contacts.c

View File

@ -64,9 +64,11 @@ depends=command.h,modem.h,gsm.h
[main.c]
depends=../include/Phone.h,phone.h,../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"
[modem.c]
depends=gsm.h,modem.h
[phone.c]
depends=../include/Phone.h,phone.h,gsm.h,callbacks.h,../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"