diff options
author | khali <khali> | 2003-06-17 12:30:32 +0000 |
---|---|---|
committer | khali <khali> | 2003-06-17 12:30:32 +0000 |
commit | 9e112cb196759b42531cc836676bfcbd69dddcbc (patch) | |
tree | f9cff72f7b06fab74c12ed1a012e73a6ee5ede04 /Makefile | |
parent | 7a887511ae58c24ed57d65a82a0fa6999f0aad27 (diff) | |
download | dmidecode-9e112cb196759b42531cc836676bfcbd69dddcbc.tar.gz |
Moved common "util" functions to util.c.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -19,11 +19,20 @@ PREFIX = /usr/local all : dmidecode biosdecode -dmidecode : dmidecode.c version.h - $(CC) $(CFLAGS) $< -o $@ +dmidecode : dmidecode.o util.o + $(CC) $^ -o $@ -biosdecode : biosdecode.c version.h - $(CC) $(CFLAGS) $< -o $@ +biosdecode : biosdecode.o util.o + $(CC) $^ -o $@ + +dmidecode.o : dmidecode.c version.h types.h util.h + $(CC) $(CFLAGS) -c $< -o $@ + +biosdecode.o : biosdecode.c version.h types.h util.h + $(CC) $(CFLAGS) -c $< -o $@ + +util.o : util.c types.h util.h + $(CC) $(CFLAGS) -c $< -o $@ install : dmidecode biosdecode install -m 755 dmidecode $(PREFIX)/sbin @@ -34,4 +43,4 @@ uninstall : rm -f $(PREFIX)/sbin/biosdecode clean : - rm -f dmidecode biosdecode + rm -f *.o dmidecode biosdecode |