-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to 5b3c8e99 with SMBIOS 3.2 improvements
- Loading branch information
Showing
8 changed files
with
1,241 additions
and
1,078 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,21 @@ | |
# VPD Decode | ||
# | ||
# Copyright (C) 2000-2002 Alan Cox <[email protected]> | ||
# Copyright (C) 2002-2015 Jean Delvare <[email protected]> | ||
# Copyright (C) 2002-2020 Jean Delvare <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
|
||
CC = gcc | ||
CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ | ||
CC ?= gcc | ||
# Base CFLAGS can be overridden by environment | ||
CFLAGS ?= -O2 | ||
# When debugging, disable -O2 and enable -g | ||
#CFLAGS ?= -g | ||
|
||
CFLAGS += -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ | ||
-Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef | ||
|
||
# Let lseek and mmap support 64-bit wide offsets | ||
|
@@ -22,12 +27,8 @@ CFLAGS += -D_FILE_OFFSET_BITS=64 | |
#CFLAGS += -DBIGENDIAN | ||
#CFLAGS += -DALIGNMENT_WORKAROUND | ||
|
||
# When debugging, disable -O2 and enable -g. | ||
CFLAGS += -O2 | ||
#CFLAGS += -g | ||
|
||
# Pass linker flags here | ||
LDFLAGS = | ||
# Pass linker flags here (can be set from environment too) | ||
LDFLAGS ?= | ||
|
||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Darwin) | ||
|
@@ -67,8 +68,8 @@ all : $(PROGRAMS) | |
# Programs | ||
# | ||
|
||
dmidecode : dmidecode.o dmiopt.o dmioem.o util.o | ||
$(CC) $(LDFLAGS) dmidecode.o dmiopt.o dmioem.o util.o -o $@ | ||
dmidecode : dmidecode.o dmiopt.o dmioem.o dmioutput.o util.o | ||
$(CC) $(LDFLAGS) dmidecode.o dmiopt.o dmioem.o dmioutput.o util.o -o $@ | ||
|
||
biosdecode : biosdecode.o util.o | ||
$(CC) $(LDFLAGS) biosdecode.o util.o -o $@ | ||
|
@@ -84,13 +85,16 @@ vpddecode : vpddecode.o vpdopt.o util.o | |
# | ||
|
||
dmidecode.o : dmidecode.c version.h types.h util.h config.h dmidecode.h \ | ||
dmiopt.h dmioem.h | ||
dmiopt.h dmioem.h dmioutput.h | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
dmiopt.o : dmiopt.c config.h types.h util.h dmidecode.h dmiopt.h | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
dmioem.o : dmioem.c types.h dmidecode.h dmioem.h | ||
dmioem.o : dmioem.c types.h dmidecode.h dmioem.h dmioutput.h | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
dmioutput.o : dmioutput.c types.h dmioutput.h | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
biosdecode.o : biosdecode.c version.h types.h util.h config.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.