|
|
###################################################################### | ###################################################################### |
| |
CC = gcc | CC = gcc |
CFLAGS= $(RPM_OPT_FLAGS) $(SYS_INCLUDES) -O2 -Wall -Wstrict-prototypes |
CFLAGS= $(SYS_INCLUDES) -Wall -Wstrict-prototypes $(GCFLAGS) |
| |
SRCS = findchip.c smc.c nsc.c winbond.c | SRCS = findchip.c smc.c nsc.c winbond.c |
OBJS = $(SRCS:.c=.o) | OBJS = $(SRCS:.c=.o) |
|
|
SYS_LIBRARIES = | SYS_LIBRARIES = |
SYS_LIBPATH = -L/usr/lib -L/usr/local/lib | SYS_LIBPATH = -L/usr/lib -L/usr/local/lib |
| |
CFLAGS= -O2 -W -Wall -Wstrict-prototypes -Wshadow $(SYS_INCLUDES) |
CFLAGS= -W -Wall -Wstrict-prototypes -Wshadow $(SYS_INCLUDES) $(GCFLAGS) |
| |
# | # |
# Files to make | # Files to make |
|
|
SYS_LIBRARIES = | SYS_LIBRARIES = |
SYS_LIBPATH = -L/usr/lib -L/usr/local/lib | SYS_LIBPATH = -L/usr/lib -L/usr/local/lib |
| |
CFLAGS= $(RPM_OPT_FLAGS) $(SYS_INCLUDES) -Wall -Wstrict-prototypes |
CFLAGS= $(SYS_INCLUDES) -Wall -Wstrict-prototypes $(GCFLAGS) |
| |
# | # |
# Files to make | # Files to make |
|
|
SYS_LIBRARIES = | SYS_LIBRARIES = |
SYS_LIBPATH = -L/usr/lib -L/usr/local/lib | SYS_LIBPATH = -L/usr/lib -L/usr/local/lib |
| |
CFLAGS= $(SYS_INCLUDES) $(RPM_OPT_FLAGS) -O2 -Wall -Wstrict-prototypes |
CFLAGS= $(SYS_INCLUDES) -Wall -Wstrict-prototypes $(GCFLAGS) |
| |
# | # |
# Files to make | # Files to make |
|
|
install: | install: |
install irpsion5 $(ROOT)/usr/bin | install irpsion5 $(ROOT)/usr/bin |
| |
CFLAGS += -g -I../include -Wall -Wstrict-prototypes $(RPM_OPT_FLAGS) |
CFLAGS += -g -I../include -Wall -Wstrict-prototypes $(GCFLAGS) |
| |
irpsion5: irpsion5.c | irpsion5: irpsion5.c |
|
|
SYS_LIBRARIES = | SYS_LIBRARIES = |
SYS_LIBPATH = -L/usr/lib -L/usr/local/lib | SYS_LIBPATH = -L/usr/lib -L/usr/local/lib |
| |
CFLAGS= $(RPM_OPT_FLAGS) $(SYS_INCLUDES) -Wall -Wstrict-prototypes |
CFLAGS= $(SYS_INCLUDES) -Wall -Wstrict-prototypes $(GCFLAGS) |
| |
# | # |
# Files to make | # Files to make |