makefile tuning
Karel Miko
6 years ago
10 | 10 |
glob('src/ltc/*/*/*/*/*.c'),
|
11 | 11 |
);
|
12 | 12 |
my $myextlib = "src/liballinone$Config{lib_ext}";
|
13 | |
my $mycflags = "$Config{ccflags}";
|
14 | |
#my $mycflags = "$Config{cccdlflags} $Config{ccflags} $Config{optimize}";
|
|
13 |
my $mycflags = "$Config{ccflags} $Config{cccdlflags} $Config{optimize}";
|
15 | 14 |
|
16 | 15 |
#FIX: gcc with -flto is a trouble maker see https://github.com/DCIT/perl-CryptX/issues/32
|
17 | 16 |
$mycflags =~ s/-flto\b//g;
|
164 | 164 |
.SUFFIXES: .o .c
|
165 | 165 |
|
166 | 166 |
.c$(OBJ_EXT):
|
167 | |
$(CC) $(CFLAGS) -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC -c $< -o $@
|
|
167 |
$(CC) -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC $(CFLAGS) -c $< -o $@
|
166 | 166 |
$(RM_F) $(OBJS) liballinone.lib
|
167 | 167 |
|
168 | 168 |
.c.obj:
|
169 | |
cl $(CFLAGS) /Iltm /Iltc/headers /DLTC_SOURCE /DLTC_NO_TEST /DLTC_NO_PROTOTYPES /DLTM_DESC /c $< /Fo$@
|
|
169 |
cl /Iltm /Iltc/headers /DLTC_SOURCE /DLTC_NO_TEST /DLTC_NO_PROTOTYPES /DLTM_DESC $(CFLAGS) /c $< /Fo$@
|
170 | 170 |
|