Ignore:
Timestamp:
Apr 26, 2008, 10:41:35 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Preparing a huge PWNtcha reorganisation. First step: put each decoder in its own subdirectory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/Makefile.am

    r1003 r2317  
    1 NULL =
     1
     2SUBDIRS = authimage clubic java linuxfr livejournal lmt paypal phpbb scode \
     3          slashdot ticketmaster tickets vbulletin xanga
    24
    35bin_PROGRAMS = pwntcha
     
    810    image.c \
    911    common.h \
    10     authimage.c \
    11     clubic.c \
    12     java.c \
    13     linuxfr.c \
    14     livejournal.c \
    15     lmt.c \
    16     paypal.c \
    17     phpbb.c \
    18     scode.c \
    19     slashdot.c \
    20     tickets.c \
    21     ticketmaster.c \
    22     vbulletin.c \
    23     xanga.c \
    2412    easter-eggs.c \
    25     test.c
    26 pwntcha_CFLAGS = $(ADDITIONAL_CFLAGS) -Wall -O6
    27 pwntcha_LDFLAGS = $(ADDITIONAL_LDFLAGS)
    28 pwntcha_LDADD = $(ADDITIONAL_LDADD)
     13    test.c \
     14    $(NULL)
     15pwntcha_CFLAGS = $(imaging_cflags) -Wall -O6
     16pwntcha_LDFLAGS = $(imaging_ldflags)
     17pwntcha_LDADD = $(SUBDIRS:%=%/libdecoder.a)
    2918
    3019if USE_SDL
    31 ADDITIONAL_CFLAGS = `sdl-config --cflags`
    32 ADDITIONAL_LDFLAGS = `sdl-config --libs` -lSDL_image
    33 ADDITIONAL_LDADD =
     20imaging_cflags = `sdl-config --cflags`
     21imaging_ldflags = `sdl-config --libs` -lSDL_image
    3422else
    3523if USE_IMLIB2
    36 ADDITIONAL_CFLAGS = `imlib2-config --cflags` -DX_DISPLAY_MISSING=1
    37 ADDITIONAL_LDFLAGS = `imlib2-config --libs`
    38 ADDITIONAL_LDADD =
     24imaging_cflags = `imlib2-config --cflags` -DX_DISPLAY_MISSING=1
     25imaging_ldflags = `imlib2-config --libs`
    3926else
    4027if USE_OPENCV
    41 ADDITIONAL_CFLAGS = `opencv-config --cflags`
    42 ADDITIONAL_LDFLAGS = `opencv-config --libs opencv highgui`
    43 ADDITIONAL_LDADD =
     28imaging_cflags = `opencv-config --cflags`
     29imaging_ldflags = `opencv-config --libs opencv highgui`
    4430else
    45 ADDITIONAL_CFLAGS =
    46 ADDITIONAL_LDFLAGS =
    47 ADDITIONAL_LDADD =
     31imaging_cflags =
     32imaging_ldflags =
    4833endif
    4934endif
Note: See TracChangeset for help on using the changeset viewer.