Remove WITH_ defines
This commit is contained in:
1 parent
95571860d0
commit
08adc52c78
3 files changed
+1
-20
No files matched your search
@@ -1,10 +1,6 @@
|
|||||||
VERSION = 0.6
|
VERSION = 0.6
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
WITH_USB = 1
|
|
||||||
#WITH_DEVICE = 1
|
|
||||||
WITH_SQUEUES = 1
|
|
||||||
|
|
||||||
# NetBSD stuff
|
# NetBSD stuff
|
||||||
#CFLAGS += -I/usr/pkg/include -g -O2
|
#CFLAGS += -I/usr/pkg/include -g -O2
|
||||||
#LDFLAGS += -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
|
#LDFLAGS += -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
|
||||||
+1
-13
@@ -2,19 +2,7 @@ include ../config.mk
|
|||||||
|
|
||||||
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_GNU_SOURCE -I.
|
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_GNU_SOURCE -I.
|
||||||
CFLAGS += -W -Wall -Wno-unused-parameter -Wno-unused-result -O2 -pedantic -std=c99
|
CFLAGS += -W -Wall -Wno-unused-parameter -Wno-unused-result -O2 -pedantic -std=c99
|
||||||
LIBS += -lm
|
LIBS += -lm -lusb
|
||||||
ifdef WITH_USB
|
|
||||||
CPPFLAGS += -DWITH_USB
|
|
||||||
LIBS += -lusb
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef WITH_DEVICE
|
|
||||||
CPPFLAGS += -DWITH_DEVICE
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef WITH_SQUEUES
|
|
||||||
CPPFLAGS += -DWITH_SQUEUES
|
|
||||||
endif
|
|
||||||
|
|
||||||
OBJS = main.o nolo.o printf-utils.o image.o fiasco.o device.o usb-device.o cold-flash.o dump.o qmode.o console.o squeue/squeue.o operations.o
|
OBJS = main.o nolo.o printf-utils.o image.o fiasco.o device.o usb-device.o cold-flash.o dump.o qmode.o console.o squeue/squeue.o operations.o
|
||||||
BIN = 0xFFFF
|
BIN = 0xFFFF
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if WITH_USB
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -178,4 +176,3 @@ int console_prompt(void)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
Reference in new issue
Block a user