Skip to content

Commit

Permalink
Makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ibmmqmet committed Aug 27, 2019
1 parent 619d5b7 commit bd17f75
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/Makefile.gcc.win
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@ SRC = mqsmf.c \
HDR = mqsmfstruc.h \
mqsmf.h

checkSize: mqsmfcsv.exe
default: mqsmfcsv.exe

all: sizeTest shipTest

sizeTest: mqsmfcsv.exe
./mqsmfcsv.exe -v > sizes.tmp
diff -b sizes.tmp sizes.master

shipTest: mqsmfcsv.exe
cd ../testing/shipTest;./shipTest.sh

mqsmfcsv.exe: $(SRC) $(HDR) Makefile.gcc.win dummy
-rm -f $@
Expand All @@ -57,5 +63,4 @@ convH.exe: convH.c
$(CC) $(CFLAGS) -o $@ convH.c
cp $@ ../bin/win


dummy:
10 changes: 9 additions & 1 deletion src/Makefile.unix
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,18 @@ SRC = \
HDR = mqsmfstruc.h \
mqsmf.h

checkSize: mqsmfcsv
default: mqsmfcsv

all: sizeTest shipTest
tests: all

sizeTest: mqsmfcsv
./mqsmfcsv -v > sizes.tmp
diff -b sizes.tmp sizes.master

shipTest: mqsmfcsv
cd ../testing/shipTest;./shipTest.sh

mqsmfcsv: $(SRC) $(HDR) Makefile.unix dummy
$(CC) $(PLATFLAGS) -o $@ $(SRC) $(CFLAGS) -DCSQDSMF_VERSION=$(VERS)

Expand Down
2 changes: 1 addition & 1 deletion src/checkSize.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "stdio.h"
#include "stddef.h"
#include "../src/mqsmfstruc.h"
#include "mqsmfstruc.h"

void checkStructureSizes(FILE *fp) {

Expand Down

0 comments on commit bd17f75

Please sign in to comment.